Class JDOImplHelper.Meta
java.lang.Object
javax.jdo.spi.JDOImplHelper.Meta
- Enclosing class:
JDOImplHelper
This 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 the
HashMap which
relates the PersistenceCapable Class
as a key to the metadata.- Version:
- 2.1
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) byte[]This is an array of field flags used for the Model at runtime.(package private) String[]This is an array of field names used for the Model at runtime.(package private) Class[]This is an array of field types used for the Model at runtime.(package private) PersistenceCapableThis is an instance ofPersistenceCapable, used at runtime to create new instances.(package private) ClassThis is theClassinstance of thePersistenceCapablesuperclass. -
Constructor Summary
ConstructorsConstructorDescriptionMeta(String[] fieldNames, Class[] fieldTypes, byte[] fieldFlags, Class persistenceCapableSuperclass, PersistenceCapable pc) Construct an instance ofMeta. -
Method Summary
Modifier and TypeMethodDescription(package private) byte[]Get the field types from the metadata.(package private) String[]Get the field names from the metadata.(package private) Class[]Get the field types from the metadata.(package private) PersistenceCapablegetPC()Get an instance of thePersistenceCapableclass.(package private) ClassReturn thePersistenceCapablesuperclass.toString()Return the string form of the metadata.
-
Field Details
-
fieldNames
String[] fieldNamesThis is an array of field names used for the Model at runtime. The field is passed by the static class initialization. -
fieldTypes
Class[] fieldTypesThis is an array of field types used for the Model at runtime. The field is passed by the static class initialization. -
fieldFlags
byte[] fieldFlagsThis is an array of field flags used for the Model at runtime. The field is passed by the static class initialization. -
persistenceCapableSuperclass
Class persistenceCapableSuperclassThis is theClassinstance of thePersistenceCapablesuperclass. -
pc
This is an instance ofPersistenceCapable, used at runtime to create new instances.
-
-
Constructor Details
-
Meta
Meta(String[] fieldNames, Class[] fieldTypes, byte[] fieldFlags, 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 Details
-
getFieldNames
-
getFieldTypes
-
getFieldFlags
byte[] getFieldFlags()Get the field types from the metadata.- Returns:
- the array of field types.
-
getPersistenceCapableSuperclass
Class getPersistenceCapableSuperclass()Return thePersistenceCapablesuperclass.- Returns:
- the
PersistenceCapablesuperclass
-
getPC
PersistenceCapable getPC()Get an instance of thePersistenceCapableclass.- Returns:
- an instance of the
PersistenceCapable Class.
-
toString
-