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.Object
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 theHashMap
which relates thePersistenceCapable Class
as a key to the metadata.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) byte[]
fieldFlags
This is an array of field flags used for the Model at runtime.(package private) java.lang.String[]
fieldNames
This is an array of field names used for the Model at runtime.(package private) java.lang.Class[]
fieldTypes
This is an array of field types used for the Model at runtime.(package private) PersistenceCapable
pc
This is an instance ofPersistenceCapable
, used at runtime to create new instances.(package private) java.lang.Class
persistenceCapableSuperclass
This is theClass
instance of thePersistenceCapable
superclass.
-
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) PersistenceCapable
getPC()
Get an instance of thePersistenceCapable
class.(package private) java.lang.Class
getPersistenceCapableSuperclass()
Return thePersistenceCapable
superclass.java.lang.String
toString()
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 theClass
instance of thePersistenceCapable
superclass.
-
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 ofString
fieldTypes
- An array ofClass
fieldFlags
- an array ofint
persistenceCapableSuperclass
- the most immediatePersistenceCapable
superclasspc
- An instance of thePersistenceCapable
class
-
-
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 thePersistenceCapable
superclass.- Returns:
- the
PersistenceCapable
superclass
-
getPC
PersistenceCapable getPC()
Get an instance of thePersistenceCapable
class.- Returns:
- an instance of the
PersistenceCapable Class
.
-
toString
public java.lang.String toString()
Return the string form of the metadata.- Overrides:
toString
in classjava.lang.Object
- Returns:
- the string form
-
-