|
SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Contains JDO meta information about a persistent type. This metadata is available both at enhancement time and runtime.
Metadata can be created without a JDOMetaDataRepository, but
methods that would require access to metadata for related classes
will throw an exception.
| Field Summary | |
static java.lang.String |
CAN_CACHE
Extension key used to mark whether the instances of a persistent class can reside in the L2 cache (if any). |
static int |
ID_APPLICATION
Constant representing the 'application' JDO identity type. |
static int |
ID_DATASTORE
Constant representing the 'datastore' JDO identity type. |
static int |
ID_NONE
Constant representing the 'none' JDO identity type. |
| Method Summary | |
void |
addDeclaredField(com.solarmetric.rd.kodo.meta.FieldMetaData field)
Add a persistent or transactional field to this class. |
boolean |
getCanCache()
Return true if the CAN_CACHE extension key is
true. |
com.solarmetric.rd.kodo.meta.FieldMetaData |
getDeclaredField(int index)
Return the metadata for the persistent or transactional field with the given relative index. |
com.solarmetric.rd.kodo.meta.FieldMetaData |
getDeclaredField(java.lang.String name)
Return the metadata for the persistent or transactional field with the given name, without including superclass fields. |
com.solarmetric.rd.kodo.meta.FieldMetaData[] |
getDeclaredFields()
Return only the fields for this class, without superclass fields. |
com.solarmetric.rd.kodo.meta.FieldMetaData[] |
getDeclaredUnmanagedFields()
Return any fields that were added as non-managed. |
java.lang.Class |
getDescribedType()
Return the persistence capable class described by this metadata. |
com.solarmetric.rd.kodo.meta.FieldMetaData |
getField(int index)
Return the metadata for the persistent or transactional field with the given absolute index. |
com.solarmetric.rd.kodo.meta.FieldMetaData |
getField(java.lang.String name)
Return the metadata for the persistent or transactional field with the given name. |
com.solarmetric.rd.kodo.meta.FieldMetaData[] |
getFields()
Return all field metadatas, including superclass fields. |
int |
getIdentityType()
Return the type of JDO identity being used. |
java.lang.Class |
getObjectIdClass()
Return the metadata-specified class to use for the object ID, or null if not specified. |
java.lang.Class |
getPCSuperclass()
Return the persistence capable superclass of the described type, or null if the metadata did not specify one. |
com.solarmetric.rd.kodo.meta.ClassMetaData |
getPCSuperclassMetaData()
Return the metadata for the persistence capable superclass of the described type, or null if the metadata did not specify one. |
java.lang.ClassLoader |
getPMClassLoader()
The class persistence manager loader used when parsing this metadata. |
com.solarmetric.rd.kodo.meta.FieldMetaData[] |
getPrimaryKeyFields()
Return primary key fields, or empty array if none. |
com.solarmetric.rd.kodo.meta.JDOMetaDataRepository |
getRepository()
Return the owning repository. |
boolean |
getRequiresExtent()
Return true if the type requires management via extent. |
java.io.File |
getSourceFile()
Return the source file the metadata was parsed from, if any. |
boolean |
getValidate()
Return true if the metadata will validate itself when resolved. |
void |
invalidateResolve()
For implemntation use. |
boolean |
isEnhanced()
Returns true if the class has been enhanced. |
boolean |
isInstanceCallbacks()
Return true if the class implements InstanceCallbacks. |
boolean |
removeDeclaredField(com.solarmetric.rd.kodo.meta.FieldMetaData field)
Remove the given field from management. |
boolean |
resolve()
For implementation use. |
void |
setCanCache(boolean cacheable)
Set the value of the CAN_CACHE standard extension. |
void |
setDescribedType(java.lang.Class type)
Return the persistence capable class described by this metadata. |
void |
setIdentityType(int type)
Set the type of JDO identity used by this class. |
void |
setObjectIdClass(java.lang.Class cls)
Set the metadata-specified class to use for the object ID. |
void |
setPCSuperclass(java.lang.Class pc)
Set the persistence capable superclass of the described type. |
void |
setPMClassLoader(java.lang.ClassLoader loader)
The class persistence manager loader used when parsing this metadata. |
void |
setRepository(com.solarmetric.rd.kodo.meta.JDOMetaDataRepository repos)
Set the owning repository. |
void |
setRequiresExtent(boolean req)
Set whether the type requires extent management. |
void |
setSourceFile(java.io.File file)
Set the source file the metadata was parsed from. |
void |
setValidate(boolean validate)
Set to false to turn off validation on resolve. |
| Methods inherited from interface com.solarmetric.rd.kodo.meta.Extensions |
addExtension, addExtension, getBooleanExtension, getBooleanExtension, getDoubleExtension, getDoubleExtension, getEmbeddedExtensions, getEmbeddedExtensions, getExtensionKeys, getExtensionKeys, getExtensionVendors, getIntExtension, getIntExtension, getObjectExtension, getObjectExtension, getStringExtension, getStringExtension, hasExtension, hasExtension, isEmpty, removeEmbeddedExtensions, removeEmbeddedExtensions, removeExtension, removeExtension |
| Methods inherited from interface java.lang.Comparable |
compareTo |
| Field Detail |
public static final int ID_NONE
public static final int ID_DATASTORE
public static final int ID_APPLICATION
public static final java.lang.String CAN_CACHE
true and false. Defaults to
true.
| Method Detail |
public java.lang.ClassLoader getPMClassLoader()
public void setPMClassLoader(java.lang.ClassLoader loader)
public boolean getValidate()
public void setValidate(boolean validate)
public com.solarmetric.rd.kodo.meta.JDOMetaDataRepository getRepository()
public void setRepository(com.solarmetric.rd.kodo.meta.JDOMetaDataRepository repos)
public java.io.File getSourceFile()
getSourceFile in interface SourceTrackerpublic void setSourceFile(java.io.File file)
public java.lang.Class getDescribedType()
public void setDescribedType(java.lang.Class type)
public java.lang.Class getPCSuperclass()
public void setPCSuperclass(java.lang.Class pc)
public com.solarmetric.rd.kodo.meta.ClassMetaData getPCSuperclassMetaData()
public int getIdentityType()
ID_DATASTORE: identity managed by the data store and
independent of the fields of the instanceID_APPLICATION: identity managed by the application and
defined by one or more fields of the instanceID_NONE: identity managed by the data store to guarantee
uniqueness in the JVM, but not necessarily in the data store; this
is rarely usedID_DATASTORE.
public void setIdentityType(int type)
getIdentityType()public java.lang.Class getObjectIdClass()
public void setObjectIdClass(java.lang.Class cls)
public boolean getRequiresExtent()
PersistenceManager.getExtent(java.lang.Class, boolean) method cannot be
used for this class. Defaults to true.
public void setRequiresExtent(boolean req)
public com.solarmetric.rd.kodo.meta.FieldMetaData[] getFields()
public com.solarmetric.rd.kodo.meta.FieldMetaData[] getDeclaredFields()
public com.solarmetric.rd.kodo.meta.FieldMetaData[] getPrimaryKeyFields()
public com.solarmetric.rd.kodo.meta.FieldMetaData getField(int index)
public com.solarmetric.rd.kodo.meta.FieldMetaData getDeclaredField(int index)
public com.solarmetric.rd.kodo.meta.FieldMetaData getField(java.lang.String name)
public com.solarmetric.rd.kodo.meta.FieldMetaData getDeclaredField(java.lang.String name)
public com.solarmetric.rd.kodo.meta.FieldMetaData[] getDeclaredUnmanagedFields()
public void addDeclaredField(com.solarmetric.rd.kodo.meta.FieldMetaData field)
public boolean removeDeclaredField(com.solarmetric.rd.kodo.meta.FieldMetaData field)
public boolean isEnhanced()
public boolean isInstanceCallbacks()
InstanceCallbacks.
public boolean getCanCache()
CAN_CACHE extension key is
true.
public void setCanCache(boolean cacheable)
CAN_CACHE standard extension.
public boolean resolve()
public void invalidateResolve()
|
SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||