public class JDOMetaDataModelImpl extends Support implements JDOMetaData
| Modifier and Type | Field and Description |
|---|---|
protected com.sun.jdo.api.persistence.model.Model |
model |
protected PrintWriter |
out |
javaLangCloneablePath, JDOExternalPath, JDOFlagsFieldName, JDOFlagsFieldSig, JDOFlagsFieldType, JDOInstanceCallbacksName, JDOInstanceCallbacksPath, JDOInstanceCallbacksSig, JDOInstanceCallbacksType, JDOPath, JDOPersistenceCapableName, JDOPersistenceCapablePath, JDOPersistenceCapableSig, JDOPersistenceCapableType, JDOPersistenceManagerName, JDOPersistenceManagerPath, JDOPersistenceManagerSig, JDOPersistenceManagerType, JDOSecondClassObjectBaseName, JDOSecondClassObjectBasePath, JDOSecondClassObjectBaseSig, JDOSecondClassObjectBaseType, JDOStateManagerFieldName, JDOStateManagerFieldSig, JDOStateManagerFieldType, JDOStateManagerName, JDOStateManagerPath, JDOStateManagerSig, JDOStateManagerType| Constructor and Description |
|---|
JDOMetaDataModelImpl(com.sun.jdo.api.persistence.model.Model model)
Creates an instance.
|
JDOMetaDataModelImpl(com.sun.jdo.api.persistence.model.Model model,
PrintWriter out) |
| 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 type is known 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 type is known 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.
|
protected static String |
nameToPath(String className) |
protected static String |
pathToName(String classPath) |
getI18N, getI18N, getI18N, getI18N, getI18N, getI18Nprotected final PrintWriter out
protected com.sun.jdo.api.persistence.model.Model model
public JDOMetaDataModelImpl(com.sun.jdo.api.persistence.model.Model model)
public JDOMetaDataModelImpl(com.sun.jdo.api.persistence.model.Model model,
PrintWriter out)
throws JDOMetaDataUserException,
JDOMetaDataFatalError
public boolean isTransientClass(String classPath) throws JDOMetaDataUserException, JDOMetaDataFatalError
isTransientClass in interface JDOMetaDataclassPath - the JVM-qualified name of the classJDOMetaDataUserExceptionJDOMetaDataFatalErrorpublic boolean isPersistenceCapableClass(String classPath) throws JDOMetaDataUserException, JDOMetaDataFatalError
isPersistenceCapableClass in interface JDOMetaDataclassPath - the JVM-qualified name of the classJDOMetaDataUserExceptionJDOMetaDataFatalErrorpublic boolean isPersistenceCapableRootClass(String classPath) throws JDOMetaDataUserException, JDOMetaDataFatalError
isPersistenceCapableRootClass in interface JDOMetaDataclassPath - the JVM-qualified name of the classJDOMetaDataUserExceptionJDOMetaDataFatalErrorpublic String getPersistenceCapableRootClass(String classPath) throws JDOMetaDataUserException, JDOMetaDataFatalError
getPersistenceCapableRootClass in interface JDOMetaDataclassPath - the JVM-qualified name of the classJDOMetaDataUserExceptionJDOMetaDataFatalErrorpublic String getSuperClass(String classPath) throws JDOMetaDataUserException, JDOMetaDataFatalError
getSuperClass in interface JDOMetaDataclassPath - the JVM-qualified name of the classJDOMetaDataUserExceptionJDOMetaDataFatalErrorpublic boolean isSecondClassObjectType(String classPath) throws JDOMetaDataUserException, JDOMetaDataFatalError
isSecondClassObjectType in interface JDOMetaDataclassPath - the JVM-qualified name of the typeJDOMetaDataUserExceptionJDOMetaDataFatalErrorpublic boolean isMutableSecondClassObjectType(String classPath) throws JDOMetaDataUserException, JDOMetaDataFatalError
isMutableSecondClassObjectType in interface JDOMetaDataclassPath - the JVM-qualified name of the typeJDOMetaDataUserExceptionJDOMetaDataFatalErrorpublic boolean isPersistentField(String classPath, String fieldName) throws JDOMetaDataUserException, JDOMetaDataFatalError
isPersistentField in interface JDOMetaDataclassPath - the JVM-qualified name of the classfieldName - the name of the fieldJDOMetaDataUserExceptionJDOMetaDataFatalErrorpublic boolean isTransactionalField(String classPath, String fieldName) throws JDOMetaDataUserException, JDOMetaDataFatalError
isTransactionalField in interface JDOMetaDataclassPath - the JVM-qualified name of the classfieldName - the name of the fieldJDOMetaDataUserExceptionJDOMetaDataFatalErrorpublic boolean isPrimaryKeyField(String classPath, String fieldName) throws JDOMetaDataUserException, JDOMetaDataFatalError
isPrimaryKeyField in interface JDOMetaDataclassPath - the JVM-qualified name of the classfieldName - the name of the fieldJDOMetaDataUserExceptionJDOMetaDataFatalErrorpublic boolean isDefaultFetchGroupField(String classPath, String fieldName) throws JDOMetaDataUserException, JDOMetaDataFatalError
isDefaultFetchGroupField in interface JDOMetaDataclassPath - the JVM-qualified name of the classfieldName - the name of the fieldJDOMetaDataUserExceptionJDOMetaDataFatalErrorpublic int getFieldNo(String classPath, String fieldName) throws JDOMetaDataUserException, JDOMetaDataFatalError
getFieldNo in interface JDOMetaDataclassPath - the JVM-qualified name of the classfieldName - the name of the fieldJDOMetaDataUserExceptionJDOMetaDataFatalErrorpublic String[] getManagedFields(String classPath) throws JDOMetaDataUserException, JDOMetaDataFatalError
getManagedFields in interface JDOMetaDataclassPath - the JVM-qualified name of the classJDOMetaDataUserExceptionJDOMetaDataFatalErrorCopyright © 2013. All Rights Reserved.