|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.jdo.api.persistence.enhancer.util.Assertion
com.sun.jdo.api.persistence.enhancer.util.Support
com.sun.jdo.api.persistence.enhancer.meta.JDOMetaDataTimer
public final class JDOMetaDataTimer
| Field Summary | |
|---|---|
protected JDOMetaData |
delegate
|
| Fields inherited from class com.sun.jdo.api.persistence.enhancer.util.Support |
|---|
timer |
| Constructor Summary | |
|---|---|
JDOMetaDataTimer(JDOMetaData delegate)
Creates an instance. |
|
| Method Summary | |
|---|---|
int |
getFieldNo(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. |
String |
getPersistenceCapableRootClass(String classPath)
Returns the name of the persistence-capable root class of a class. |
String |
getSuperClass(String classPath)
Returns the name of the superclass of a class. |
boolean |
isDefaultFetchGroupField(String classPath,
String fieldName)
Tests whether a field of a class is known to be part of the Default Fetch Group. |
boolean |
isMutableSecondClassObjectType(String classPath)
Tests whether a class is known as type for Mutable Second Class Objects. |
boolean |
isPersistenceCapableClass(String classPath)
Tests whether a class is known to be persistence-capable. |
boolean |
isPersistenceCapableRootClass(String classPath)
Tests whether a class is known as a persistence-capable root class. |
boolean |
isPersistentField(String classPath,
String fieldName)
Tests whether a field of a class is known to be persistent. |
boolean |
isPrimaryKeyField(String classPath,
String fieldName)
Tests whether a field of a class is known to be Primary Key. |
boolean |
isSecondClassObjectType(String classPath)
Tests whether a class is known as type for Second Class Objects. |
boolean |
isTransactionalField(String classPath,
String fieldName)
Tests whether a field of a class is known to be transactional. |
boolean |
isTransientClass(String classPath)
Tests whether a class is known to be transient. |
| Methods inherited from class com.sun.jdo.api.persistence.enhancer.util.Support |
|---|
getI18N, getI18N, getI18N, getI18N, getI18N, getI18N |
| Methods inherited from class com.sun.jdo.api.persistence.enhancer.util.Assertion |
|---|
affirm, affirm, affirm, affirm |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final JDOMetaData delegate
| Constructor Detail |
|---|
public JDOMetaDataTimer(JDOMetaData delegate)
throws JDOMetaDataUserException,
JDOMetaDataFatalError
JDOMetaDataUserException
JDOMetaDataFatalError| Method Detail |
|---|
public boolean isPersistenceCapableClass(String classPath)
throws JDOMetaDataUserException,
JDOMetaDataFatalError
JDOMetaDataThe following invariant holds: isPersistenceCapableClass(classPath) => !isTransientClass(classPath) && !isSecondClassObjectType(classPath)
isPersistenceCapableClass in interface JDOMetaDataclassPath - the JVM-qualified name of the class
JDOMetaDataUserException
JDOMetaDataFatalError
public boolean isTransientClass(String classPath)
throws JDOMetaDataUserException,
JDOMetaDataFatalError
JDOMetaDataThe following invariant holds: isTransientClass(classPath) => !isPersistenceCapableClass(classPath)
isTransientClass in interface JDOMetaDataclassPath - the JVM-qualified name of the class
JDOMetaDataUserException
JDOMetaDataFatalError
public boolean isPersistenceCapableRootClass(String classPath)
throws JDOMetaDataUserException,
JDOMetaDataFatalError
JDOMetaData
isPersistenceCapableRootClass in interface JDOMetaDataclassPath - the JVM-qualified name of the class
JDOMetaDataUserException
JDOMetaDataFatalError
public String getSuperClass(String classPath)
throws JDOMetaDataUserException,
JDOMetaDataFatalError
JDOMetaData
getSuperClass in interface JDOMetaDataclassPath - the JVM-qualified name of the class
JDOMetaDataUserException
JDOMetaDataFatalError
public String getPersistenceCapableRootClass(String classPath)
throws JDOMetaDataUserException,
JDOMetaDataFatalError
JDOMetaData
getPersistenceCapableRootClass in interface JDOMetaDataclassPath - the JVM-qualified name of the class
JDOMetaDataUserException
JDOMetaDataFatalError
public boolean isSecondClassObjectType(String classPath)
throws JDOMetaDataUserException,
JDOMetaDataFatalError
JDOMetaDataThe following invariant holds: isSecondClassObjectType(classPath) => !isPersistenceCapableClass(classPath)
isSecondClassObjectType in interface JDOMetaDataclassPath - the JVM-qualified name of the type
JDOMetaDataUserException
JDOMetaDataFatalError
public boolean isMutableSecondClassObjectType(String classPath)
throws JDOMetaDataUserException,
JDOMetaDataFatalError
JDOMetaData
isMutableSecondClassObjectType in interface JDOMetaDataclassPath - the JVM-qualified name of the type
JDOMetaDataUserException
JDOMetaDataFatalError
public boolean isPersistentField(String classPath,
String fieldName)
throws JDOMetaDataUserException,
JDOMetaDataFatalError
JDOMetaData
isPersistentField in interface JDOMetaDataclassPath - the JVM-qualified name of the classfieldName - the name of the field
JDOMetaDataUserException
JDOMetaDataFatalError
public boolean isTransactionalField(String classPath,
String fieldName)
throws JDOMetaDataUserException,
JDOMetaDataFatalError
JDOMetaData
isTransactionalField in interface JDOMetaDataclassPath - the JVM-qualified name of the classfieldName - the name of the field
JDOMetaDataUserException
JDOMetaDataFatalError
public boolean isPrimaryKeyField(String classPath,
String fieldName)
throws JDOMetaDataUserException,
JDOMetaDataFatalError
JDOMetaData
isPrimaryKeyField in interface JDOMetaDataclassPath - the JVM-qualified name of the classfieldName - the name of the field
JDOMetaDataUserException
JDOMetaDataFatalError
public boolean isDefaultFetchGroupField(String classPath,
String fieldName)
throws JDOMetaDataUserException,
JDOMetaDataFatalError
JDOMetaData
isDefaultFetchGroupField in interface JDOMetaDataclassPath - the JVM-qualified name of the classfieldName - the name of the field
JDOMetaDataUserException
JDOMetaDataFatalError
public int getFieldNo(String classPath,
String fieldName)
throws JDOMetaDataUserException,
JDOMetaDataFatalError
JDOMetaData
getFieldNo in interface JDOMetaDataclassPath - the JVM-qualified name of the classfieldName - the name of the field
JDOMetaDataUserException
JDOMetaDataFatalError
public String[] getManagedFields(String classPath)
throws JDOMetaDataUserException,
JDOMetaDataFatalError
JDOMetaDataThe 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
getManagedFields in interface JDOMetaDataclassPath - the JVM-qualified name of the class
JDOMetaDataUserException
JDOMetaDataFatalError
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||