Package javax.jdo.spi
Class JDOImplHelper.Meta
- java.lang.Object
-
- javax.jdo.spi.JDOImplHelper.Meta
-
- Enclosing class:
- JDOImplHelper
static class JDOImplHelper.Meta extends java.lang.ObjectThis is a helper class to manage metadata per persistence-capable class. The information is used at runtime to provide field names and field types to the JDO Model. This is the value of theHashMapwhich relates thePersistenceCapable Classas a key to the metadata.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) byte[]fieldFlagsThis is an array of field flags used for the Model at runtime.(package private) java.lang.String[]fieldNamesThis is an array of field names used for the Model at runtime.(package private) java.lang.Class[]fieldTypesThis is an array of field types used for the Model at runtime.(package private) PersistenceCapablepcThis is an instance ofPersistenceCapable, used at runtime to create new instances.(package private) java.lang.ClasspersistenceCapableSuperclassThis is theClassinstance of thePersistenceCapablesuperclass.
-
Constructor Summary
Constructors Constructor Description Meta(java.lang.String[] fieldNames, java.lang.Class[] fieldTypes, byte[] fieldFlags, java.lang.Class persistenceCapableSuperclass, PersistenceCapable pc)Construct an instance ofMeta.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) byte[]getFieldFlags()Get the field types from the metadata.(package private) java.lang.String[]getFieldNames()Get the field names from the metadata.(package private) java.lang.Class[]getFieldTypes()Get the field types from the metadata.(package private) PersistenceCapablegetPC()Get an instance of thePersistenceCapableclass.(package private) java.lang.ClassgetPersistenceCapableSuperclass()Return thePersistenceCapablesuperclass.java.lang.StringtoString()Return the string form of the metadata.
-
-
-
Field Detail
-
fieldNames
java.lang.String[] fieldNames
This is an array of field names used for the Model at runtime. The field is passed by the static class initialization.
-
fieldTypes
java.lang.Class[] fieldTypes
This is an array of field types used for the Model at runtime. The field is passed by the static class initialization.
-
fieldFlags
byte[] fieldFlags
This is an array of field flags used for the Model at runtime. The field is passed by the static class initialization.
-
persistenceCapableSuperclass
java.lang.Class persistenceCapableSuperclass
This is theClassinstance of thePersistenceCapablesuperclass.
-
pc
PersistenceCapable pc
This is an instance ofPersistenceCapable, used at runtime to create new instances.
-
-
Constructor Detail
-
Meta
Meta(java.lang.String[] fieldNames, java.lang.Class[] fieldTypes, byte[] fieldFlags, java.lang.Class persistenceCapableSuperclass, PersistenceCapable pc)Construct an instance ofMeta.- Parameters:
fieldNames- An array ofStringfieldTypes- An array ofClassfieldFlags- an array ofintpersistenceCapableSuperclass- the most immediatePersistenceCapablesuperclasspc- An instance of thePersistenceCapableclass
-
-
Method Detail
-
getFieldNames
java.lang.String[] getFieldNames()
Get the field names from the metadata.- Returns:
- the array of field names.
-
getFieldTypes
java.lang.Class[] getFieldTypes()
Get the field types from the metadata.- Returns:
- the array of field types.
-
getFieldFlags
byte[] getFieldFlags()
Get the field types from the metadata.- Returns:
- the array of field types.
-
getPersistenceCapableSuperclass
java.lang.Class getPersistenceCapableSuperclass()
Return thePersistenceCapablesuperclass.- Returns:
- the
PersistenceCapablesuperclass
-
getPC
PersistenceCapable getPC()
Get an instance of thePersistenceCapableclass.- Returns:
- an instance of the
PersistenceCapable Class.
-
toString
public java.lang.String toString()
Return the string form of the metadata.- Overrides:
toStringin classjava.lang.Object- Returns:
- the string form
-
-