public interface JDOMetaData
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 ...
JDOPersistenceCapableName
= "PersistenceCapable
")JDOPersistenceCapablePath
= 'com.sun.jdo.spi.persistence.support.sqlstore.PersistenceCapable
")JDOPersistenceCapablePath
= 'com/sun/jdo/spi/persistence/support/sqlstore/PersistenceCapable
")JDOPersistenceCapableSig
= "Lcom/sun/jdo/spi/persistence/support/sqlstore/PersistenceCapable;
")Modifier and Type | Method and Description |
---|---|
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.
|
static final String JDOExternalPath
static final String JDOPath
static final String JDOPersistenceCapableName
static final String JDOPersistenceCapablePath
static final String JDOPersistenceCapableSig
static final String JDOPersistenceCapableType
static final String javaLangCloneablePath
static final String JDOInstanceCallbacksName
static final String JDOInstanceCallbacksPath
static final String JDOInstanceCallbacksSig
static final String JDOInstanceCallbacksType
static final String JDOSecondClassObjectBaseName
static final String JDOSecondClassObjectBasePath
static final String JDOSecondClassObjectBaseSig
static final String JDOSecondClassObjectBaseType
static final String JDOPersistenceManagerName
static final String JDOPersistenceManagerPath
static final String JDOPersistenceManagerSig
static final String JDOPersistenceManagerType
static final String JDOStateManagerName
static final String JDOStateManagerPath
static final String JDOStateManagerSig
static final String JDOStateManagerType
static final String JDOStateManagerFieldName
static final String JDOStateManagerFieldType
static final String JDOStateManagerFieldSig
static final String JDOFlagsFieldName
static final String JDOFlagsFieldType
static final String JDOFlagsFieldSig
boolean isTransientClass(String classPath) throws JDOMetaDataUserException, JDOMetaDataFatalError
The following invariant holds: isTransientClass(classPath) => !isPersistenceCapableClass(classPath)
classPath
- the JVM-qualified name of the classJDOMetaDataUserException
JDOMetaDataFatalError
boolean isPersistenceCapableClass(String classPath) throws JDOMetaDataUserException, JDOMetaDataFatalError
The following invariant holds: isPersistenceCapableClass(classPath) => !isTransientClass(classPath) && !isSecondClassObjectType(classPath)
classPath
- the JVM-qualified name of the classJDOMetaDataUserException
JDOMetaDataFatalError
boolean isPersistenceCapableRootClass(String classPath) throws JDOMetaDataUserException, JDOMetaDataFatalError
classPath
- the JVM-qualified name of the classJDOMetaDataUserException
JDOMetaDataFatalError
String getPersistenceCapableRootClass(String classPath) throws JDOMetaDataUserException, JDOMetaDataFatalError
classPath
- the JVM-qualified name of the classJDOMetaDataUserException
JDOMetaDataFatalError
String getSuperClass(String classPath) throws JDOMetaDataUserException, JDOMetaDataFatalError
classPath
- the JVM-qualified name of the classJDOMetaDataUserException
JDOMetaDataFatalError
boolean isSecondClassObjectType(String classPath) throws JDOMetaDataUserException, JDOMetaDataFatalError
The following invariant holds: isSecondClassObjectType(classPath) => !isPersistenceCapableClass(classPath)
classPath
- the JVM-qualified name of the typeJDOMetaDataUserException
JDOMetaDataFatalError
boolean isMutableSecondClassObjectType(String classPath) throws JDOMetaDataUserException, JDOMetaDataFatalError
classPath
- the JVM-qualified name of the typeJDOMetaDataUserException
JDOMetaDataFatalError
boolean isPersistentField(String classPath, String fieldName) throws JDOMetaDataUserException, JDOMetaDataFatalError
classPath
- the JVM-qualified name of the classfieldName
- the name of the fieldJDOMetaDataUserException
JDOMetaDataFatalError
boolean isTransactionalField(String classPath, String fieldName) throws JDOMetaDataUserException, JDOMetaDataFatalError
classPath
- the JVM-qualified name of the classfieldName
- the name of the fieldJDOMetaDataUserException
JDOMetaDataFatalError
boolean isPrimaryKeyField(String classPath, String fieldName) throws JDOMetaDataUserException, JDOMetaDataFatalError
classPath
- the JVM-qualified name of the classfieldName
- the name of the fieldJDOMetaDataUserException
JDOMetaDataFatalError
boolean isDefaultFetchGroupField(String classPath, String fieldName) throws JDOMetaDataUserException, JDOMetaDataFatalError
classPath
- the JVM-qualified name of the classfieldName
- the name of the fieldJDOMetaDataUserException
JDOMetaDataFatalError
int getFieldNo(String classPath, String fieldName) throws JDOMetaDataUserException, JDOMetaDataFatalError
classPath
- the JVM-qualified name of the classfieldName
- the name of the fieldJDOMetaDataUserException
JDOMetaDataFatalError
String[] getManagedFields(String classPath) throws JDOMetaDataUserException, JDOMetaDataFatalError
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
classPath
- the JVM-qualified name of the classJDOMetaDataUserException
JDOMetaDataFatalError
Copyright © 2019. All rights reserved.