Interface JDOMetaData
- All Known Subinterfaces:
ExtendedJDOMetaData
- All Known Implementing Classes:
JDOMetaDataModelImpl,JDOMetaDataPropertyImpl,JDOMetaDataTimer
Please note: This interface deals with fully qualified names in the JVM notation, that is, with '/' as package separator character (instead of '.').
The following convention is used to specify the format of a given name: Something called ...
-
name represents a non-qualified name (e.g.
JDOPersistenceCapableName= "PersistenceCapable") -
type represents a Java-qualified class name (e.g.
JDOPersistenceCapablePath= 'com.sun.jdo.spi.persistence.support.sqlstore.PersistenceCapable") -
path represents a JVM-qualified name (e.g.
JDOPersistenceCapablePath= 'com/sun/jdo/spi/persistence/support/sqlstore/PersistenceCapable") -
sig (for signature) represents a JVM-qualified type-signature
name (e.g.
JDOPersistenceCapableSig= "Lcom/sun/jdo/spi/persistence/support/sqlstore/PersistenceCapable;")
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Method Summary
Modifier and TypeMethodDescriptionintgetFieldNo(String classPath, String fieldName) Returns the unique field index of a declared, persistent field of a class.String[]getManagedFields(String classPath) Returns an array of field names of all declared persistent and transactional fields of a class.getPersistenceCapableRootClass(String classPath) Returns the name of the persistence-capable root class of a class.getSuperClass(String classPath) Returns the name of the superclass of a class.booleanisDefaultFetchGroupField(String classPath, String fieldName) Tests whether a field of a class is known to be part of the Default Fetch Group.booleanisMutableSecondClassObjectType(String classPath) Tests whether a class is known as type for Mutable Second Class Objects.booleanisPersistenceCapableClass(String classPath) Tests whether a class is known to be persistence-capable.booleanisPersistenceCapableRootClass(String classPath) Tests whether a class is known as a persistence-capable root class.booleanisPersistentField(String classPath, String fieldName) Tests whether a field of a class is known to be persistent.booleanisPrimaryKeyField(String classPath, String fieldName) Tests whether a field of a class is known to be Primary Key.booleanisSecondClassObjectType(String classPath) Tests whether a class is known as type for Second Class Objects.booleanisTransactionalField(String classPath, String fieldName) Tests whether a field of a class is known to be transactional.booleanisTransientClass(String classPath) Tests whether a class is known to be transient.
-
Field Details
-
JDOExternalPath
- See Also:
-
JDOPath
- See Also:
-
JDOPersistenceCapableName
- See Also:
-
JDOPersistenceCapablePath
- See Also:
-
JDOPersistenceCapableSig
- See Also:
-
JDOPersistenceCapableType
-
javaLangCloneablePath
- See Also:
-
JDOInstanceCallbacksName
- See Also:
-
JDOInstanceCallbacksPath
- See Also:
-
JDOInstanceCallbacksSig
- See Also:
-
JDOInstanceCallbacksType
-
JDOSecondClassObjectBaseName
- See Also:
-
JDOSecondClassObjectBasePath
- See Also:
-
JDOSecondClassObjectBaseSig
- See Also:
-
JDOSecondClassObjectBaseType
-
JDOPersistenceManagerName
- See Also:
-
JDOPersistenceManagerPath
- See Also:
-
JDOPersistenceManagerSig
- See Also:
-
JDOPersistenceManagerType
-
JDOStateManagerName
- See Also:
-
JDOStateManagerPath
- See Also:
-
JDOStateManagerSig
- See Also:
-
JDOStateManagerType
-
JDOStateManagerFieldName
- See Also:
-
JDOStateManagerFieldType
-
JDOStateManagerFieldSig
- See Also:
-
JDOFlagsFieldName
- See Also:
-
JDOFlagsFieldType
- See Also:
-
JDOFlagsFieldSig
- See Also:
-
-
Method Details
-
isTransientClass
Tests whether a class is known to be transient.The following invariant holds: isTransientClass(classPath) => !isPersistenceCapableClass(classPath)
- Parameters:
classPath- the JVM-qualified name of the class- Returns:
- true if this class is known to be transient; otherwise false
- Throws:
JDOMetaDataUserExceptionJDOMetaDataFatalError
-
isPersistenceCapableClass
boolean isPersistenceCapableClass(String classPath) throws JDOMetaDataUserException, JDOMetaDataFatalError Tests whether a class is known to be persistence-capable.The following invariant holds: isPersistenceCapableClass(classPath) => !isTransientClass(classPath) && !isSecondClassObjectType(classPath)
- Parameters:
classPath- the JVM-qualified name of the class- Returns:
- true if this class is persistence-capable; otherwise false
- Throws:
JDOMetaDataUserExceptionJDOMetaDataFatalError
-
isPersistenceCapableRootClass
boolean isPersistenceCapableRootClass(String classPath) throws JDOMetaDataUserException, JDOMetaDataFatalError Tests whether a class is known as a persistence-capable root class.- Parameters:
classPath- the JVM-qualified name of the class- Returns:
- true if this class is persistence-capable and does not derive from another persistence-capable class; otherwise false
- Throws:
JDOMetaDataUserExceptionJDOMetaDataFatalError
-
getPersistenceCapableRootClass
String getPersistenceCapableRootClass(String classPath) throws JDOMetaDataUserException, JDOMetaDataFatalError Returns the name of the persistence-capable root class of a class.- Parameters:
classPath- the JVM-qualified name of the class- Returns:
- the name of the least-derived persistence-capable class that is equal to or a super class of the argument class; if the argument class is not persistence-capable, null is returned.
- Throws:
JDOMetaDataUserExceptionJDOMetaDataFatalError
-
getSuperClass
Returns the name of the superclass of a class.- Parameters:
classPath- the JVM-qualified name of the class- Returns:
- the name of the superclass.
- Throws:
JDOMetaDataUserExceptionJDOMetaDataFatalError
-
isSecondClassObjectType
boolean isSecondClassObjectType(String classPath) throws JDOMetaDataUserException, JDOMetaDataFatalError Tests whether a class is known as type for Second Class Objects.The following invariant holds: isSecondClassObjectType(classPath) => !isPersistenceCapableClass(classPath)
- Parameters:
classPath- the JVM-qualified name of the type- Returns:
- true if this type is known for second class objects; otherwise false
- Throws:
JDOMetaDataUserExceptionJDOMetaDataFatalError
-
isMutableSecondClassObjectType
boolean isMutableSecondClassObjectType(String classPath) throws JDOMetaDataUserException, JDOMetaDataFatalError Tests whether a class is known as type for Mutable Second Class Objects.- Parameters:
classPath- the JVM-qualified name of the type- Returns:
- true if this type is known for mutable second class objects; otherwise false
- Throws:
JDOMetaDataUserExceptionJDOMetaDataFatalError
-
isPersistentField
boolean isPersistentField(String classPath, String fieldName) throws JDOMetaDataUserException, JDOMetaDataFatalError Tests whether a field of a class is known to be persistent.- Parameters:
classPath- the JVM-qualified name of the classfieldName- the name of the field- Returns:
- true if this field is known to be persistent; otherwise false
- Throws:
JDOMetaDataUserExceptionJDOMetaDataFatalError
-
isTransactionalField
boolean isTransactionalField(String classPath, String fieldName) throws JDOMetaDataUserException, JDOMetaDataFatalError Tests whether a field of a class is known to be transactional.- Parameters:
classPath- the JVM-qualified name of the classfieldName- the name of the field- Returns:
- true if this field is known to be transactional; otherwise false
- Throws:
JDOMetaDataUserExceptionJDOMetaDataFatalError
-
isPrimaryKeyField
boolean isPrimaryKeyField(String classPath, String fieldName) throws JDOMetaDataUserException, JDOMetaDataFatalError Tests whether a field of a class is known to be Primary Key.- Parameters:
classPath- the JVM-qualified name of the classfieldName- the name of the field- Returns:
- true if this field is known to be primary key; otherwise false
- Throws:
JDOMetaDataUserExceptionJDOMetaDataFatalError
-
isDefaultFetchGroupField
boolean isDefaultFetchGroupField(String classPath, String fieldName) throws JDOMetaDataUserException, JDOMetaDataFatalError Tests whether a field of a class is known to be part of the Default Fetch Group.- Parameters:
classPath- the JVM-qualified name of the classfieldName- the name of the field- Returns:
- true if this field is known to be part of the default fetch group; otherwise false
- Throws:
JDOMetaDataUserExceptionJDOMetaDataFatalError
-
getFieldNo
int getFieldNo(String classPath, String fieldName) throws JDOMetaDataUserException, JDOMetaDataFatalError Returns the unique field index of a declared, persistent field of a class.- Parameters:
classPath- the JVM-qualified name of the classfieldName- the name of the field- Returns:
- the non-negative, unique field index
- Throws:
JDOMetaDataUserExceptionJDOMetaDataFatalError
-
getManagedFields
Returns an array of field names of all declared persistent and transactional fields of a class.The position of the field names in the result array corresponds to their unique field index as returned by getFieldNo such that these equations holds:
getFieldNo(getManagedFields(classPath)[i]) == i
getManagedFields(classPath)[getFieldNo(fieldName)] == fieldName
- Parameters:
classPath- the JVM-qualified name of the class- Returns:
- an array of all declared persistent and transactional fields of a class
- Throws:
JDOMetaDataUserExceptionJDOMetaDataFatalError
-