Package javax.jdo.spi
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.-
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) PersistenceCapable
This is an instance ofPersistenceCapable
, used at runtime to create new instances.(package private) Class
This is theClass
instance of thePersistenceCapable
superclass. -
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) PersistenceCapable
getPC()
Get an instance of thePersistenceCapable
class.(package private) Class
Return thePersistenceCapable
superclass.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 theClass
instance of thePersistenceCapable
superclass. -
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 ofString
fieldTypes
- An array ofClass
fieldFlags
- an array ofint
persistenceCapableSuperclass
- the most immediatePersistenceCapable
superclasspc
- An instance of thePersistenceCapable
class
-
-
Method Details
-
getFieldNames
String[] getFieldNames()Get the field names from the metadata.- Returns:
- the array of field names.
-
getFieldTypes
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
Class getPersistenceCapableSuperclass()Return thePersistenceCapable
superclass.- Returns:
- the
PersistenceCapable
superclass
-
getPC
PersistenceCapable getPC()Get an instance of thePersistenceCapable
class.- Returns:
- an instance of the
PersistenceCapable Class
.
-
toString
Return the string form of the metadata.
-