|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ExtendedJDOMetaData
Provides extended JDO meta information for byte-code enhancement.
| Field Summary | |
|---|---|
static int |
CHECK_READ
The JDO field flags. |
static int |
CHECK_WRITE
|
static int |
MEDIATE_READ
|
static int |
MEDIATE_WRITE
|
static int |
SERIALIZABLE
|
| Method Summary | |
|---|---|
int |
getClassModifiers(String classname)
Gets the modifiers of a class. |
int |
getFieldFlags(String classPath,
String fieldName)
Returns the field flags for a declared field of a class. |
int[] |
getFieldFlags(String classPath,
String[] fieldNames)
Returns the field flags for some declared, managed fields of a class. |
int |
getFieldModifiers(String classname,
String fieldname)
Gets the modifiers of a field. |
int[] |
getFieldNo(String classPath,
String[] fieldNames)
Returns the unique field index of some declared, managed fields of a class. |
String |
getFieldType(String classname,
String fieldname)
Gets the type of a field. |
String[] |
getFieldType(String classname,
String[] fieldnames)
Gets the type of some fields. |
String |
getKeyClass(String classPath)
Returns the name of the key class of a class. |
String[] |
getKeyFields(String classPath)
Returns an array of field names of all key fields of a class. |
String[] |
getKnownClasses()
Gets all known classnames. |
String[] |
getKnownFields(String classname)
Gets all known fieldnames of a class. |
String |
getPersistenceCapableSuperClass(String classPath)
Returns the name of the persistence-capable superclass of a class. |
String |
getSuperKeyClass(String classPath)
Returns the name of the key class of the next persistence-capable superclass that defines one. |
boolean |
isKeyField(String classPath,
String fieldName)
Returns whether a field of a class is key. |
boolean |
isKnownNonManagedField(String classPath,
String fieldName,
String fieldSig)
Returns whether a field of a class is known to be non-managed. |
boolean |
isManagedField(String classPath,
String fieldName)
Returns whether a field of a class is transient transactional or persistent. |
| Methods inherited from interface com.sun.jdo.api.persistence.enhancer.meta.JDOMetaData |
|---|
getFieldNo, getManagedFields, getPersistenceCapableRootClass, getSuperClass, isDefaultFetchGroupField, isMutableSecondClassObjectType, isPersistenceCapableClass, isPersistenceCapableRootClass, isPersistentField, isPrimaryKeyField, isSecondClassObjectType, isTransactionalField, isTransientClass |
| Field Detail |
|---|
static final int CHECK_READ
static final int MEDIATE_READ
static final int CHECK_WRITE
static final int MEDIATE_WRITE
static final int SERIALIZABLE
| Method Detail |
|---|
String[] getKnownClasses()
throws JDOMetaDataUserException,
JDOMetaDataFatalError
JDOMetaDataUserException
JDOMetaDataFatalError
String[] getKnownFields(String classname)
throws JDOMetaDataUserException,
JDOMetaDataFatalError
classname - The classname.
JDOMetaDataUserException
JDOMetaDataFatalError
String getFieldType(String classname,
String fieldname)
throws JDOMetaDataUserException,
JDOMetaDataFatalError
classname - The classname.fieldname - The fieldname.
JDOMetaDataUserException
JDOMetaDataFatalError
int getClassModifiers(String classname)
throws JDOMetaDataUserException,
JDOMetaDataFatalError
java.lang.reflect.Modifier class.
classname - The classname.
JDOMetaDataUserException
JDOMetaDataFatalErrorModifier
int getFieldModifiers(String classname,
String fieldname)
throws JDOMetaDataUserException,
JDOMetaDataFatalError
java.lang.reflect.Modifier class.
classname - The classname.fieldname - The fieldname.
JDOMetaDataUserException
JDOMetaDataFatalErrorModifier
String getKeyClass(String classPath)
throws JDOMetaDataUserException,
JDOMetaDataFatalError
The following holds: (String s = getKeyClass(classPath)) != null ==> !isPersistenceCapableClass(s) && isPersistenceCapableClass(classPath)
classPath - the non-null JVM-qualified name of the class
JDOMetaDataUserException
JDOMetaDataFatalErrorJDOMetaData.isPersistenceCapableClass(String)
boolean isKnownNonManagedField(String classPath,
String fieldName,
String fieldSig)
throws JDOMetaDataUserException,
JDOMetaDataFatalError
This method differs from isManagedField() in that a field may or may not be managed if its not known as non-managed. The following holds (not vice versa!): isKnownNonManagedField(classPath, fieldName) ==> !isManagedField(classPath, fieldName)
This method doesn't require the field having been declared by declareField().
classPath - the non-null JVM-qualified name of the classfieldName - the non-null name of the fieldfieldSig - the non-null type signature of the field
JDOMetaDataUserException
JDOMetaDataFatalErrorisManagedField(String, String)
boolean isManagedField(String classPath,
String fieldName)
throws JDOMetaDataUserException,
JDOMetaDataFatalError
A managed field must not be known as non-managed and must be either transient transactional or persistent. The following holds: isManagedField(classPath, fieldName) ==> !isKnownNonManagedField(classPath, fieldName) && (isPersistentField(classPath, fieldName) ^ isTransactionalField(classPath, fieldName))
This method requires the field having been declared by declareField().
classPath - the non-null JVM-qualified name of the classfieldName - the non-null name of the field
JDOMetaDataUserException
JDOMetaDataFatalErrorisKnownNonManagedField(String, String, String),
JDOMetaData.isPersistentField(String, String),
JDOMetaData.isPersistenceCapableClass(String)
boolean isKeyField(String classPath,
String fieldName)
throws JDOMetaDataUserException,
JDOMetaDataFatalError
A key field must be persistent. The following holds: isKeyField(classPath, fieldName) ==> isPersistentField(classPath, fieldName) && !isDefaultFetchGroupField(classPath, fieldName)
This method requires the field having been declared by declareField().
classPath - the non-null JVM-qualified name of the classfieldName - the non-null name of the field
JDOMetaDataUserException
JDOMetaDataFatalErrorJDOMetaData.isPersistentField(String, String)
int getFieldFlags(String classPath,
String fieldName)
throws JDOMetaDataUserException,
JDOMetaDataFatalError
The following holds for the field flags: int f = getFieldFlags(classPath, fieldName); !isManagedField(classPath, fieldName) ==> (f & CHECK_READ == 0) && (f & MEDIATE_READ == 0) && (f & CHECK_WRITE == 0) && (f & MEDIATE_WRITE == 0) isTransientField(classPath, fieldName) ==> (f & CHECK_READ == 0) && (f & MEDIATE_READ == 0) && (f & CHECK_WRITE != 0) && (f & MEDIATE_WRITE == 0) isKeyField(classPath, fieldName) ==> (f & CHECK_READ == 0) && (f & MEDIATE_READ == 0) && (f & CHECK_WRITE == 0) && (f & MEDIATE_WRITE != 0) isDefaultFetchGroupField(classPath, fieldName) ==> (f & CHECK_READ != 0) && (f & MEDIATE_READ != 0) && (f & CHECK_WRITE == 0) && (f & MEDIATE_WRITE == 0) isPersistentField(classPath, fieldName) && isKeyField(classPath, fieldName) && isDefaultFetchGroupField(classPath, fieldName) ==> (f & CHECK_READ == 0) && (f & MEDIATE_READ == 0) && (f & CHECK_WRITE != 0) && (f & MEDIATE_WRITE != 0)
This method requires the field having been declared by declareField().
classPath - the non-null JVM-qualified name of the classfieldName - the non-null name of the field
JDOMetaDataUserException
JDOMetaDataFatalError
int[] getFieldFlags(String classPath,
String[] fieldNames)
throws JDOMetaDataUserException,
JDOMetaDataFatalError
This method requires all fields having been declared by declareField().
classPath - the non-null JVM-qualified name of the classfieldNames - the non-null array of names of the declared fields
JDOMetaDataUserException
JDOMetaDataFatalError
String[] getFieldType(String classname,
String[] fieldnames)
throws JDOMetaDataUserException,
JDOMetaDataFatalError
classname - The classname.fieldnames - The fieldnames.
JDOMetaDataUserException
JDOMetaDataFatalError
int[] getFieldNo(String classPath,
String[] fieldNames)
throws JDOMetaDataUserException,
JDOMetaDataFatalError
This method requires all fields having been declared by declareField().
classPath - the non-null JVM-qualified name of the classfieldNames - the non-null array of names of the declared fields
JDOMetaDataUserException
JDOMetaDataFatalError
String[] getKeyFields(String classPath)
throws JDOMetaDataUserException,
JDOMetaDataFatalError
This method requires all fields having been declared by declareField().
classPath - the non-null JVM-qualified name of the class
JDOMetaDataUserException
JDOMetaDataFatalError
String getPersistenceCapableSuperClass(String classPath)
throws JDOMetaDataUserException,
JDOMetaDataFatalError
The following holds: (String s = getPersistenceCapableSuperClass(classPath)) != null ==> isPersistenceCapableClass(classPath) && !isPersistenceCapableRootClass(classPath)
classPath - the non-null JVM-qualified name of the class
JDOMetaDataUserException
JDOMetaDataFatalErrorJDOMetaData.isPersistenceCapableClass(String),
JDOMetaData.getPersistenceCapableRootClass(String)
String getSuperKeyClass(String classPath)
throws JDOMetaDataUserException,
JDOMetaDataFatalError
The following holds: (String s = getSuperKeyClass(classPath)) != null ==> !isPersistenceCapableClass(s) && isPersistenceCapableClass(classPath) && !isPersistenceCapableRootClass(classPath)
classPath - the non-null JVM-qualified name of the class
JDOMetaDataUserException
JDOMetaDataFatalErrorgetKeyClass(String),
getPersistenceCapableSuperClass(String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||