public class EnhancerMetaDataJDOModelImpl extends EnhancerMetaDataBaseModel implements EnhancerMetaData
out, unenhancableTypePrefixes, verboseCHECK_READ, CHECK_WRITE, MEDIATE_READ, MEDIATE_WRITE, SERIALIZABLE| Constructor and Description |
|---|
EnhancerMetaDataJDOModelImpl(java.io.PrintWriter out,
boolean verbose,
java.util.List jdoFileNames,
java.util.List jarFileNames,
java.lang.String sourcePath)
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
declareField(java.lang.String classPath,
java.lang.String fieldName,
java.lang.String fieldSig)
Declares a field to the JDO model passing its type information.
|
java.lang.String |
getDeclaringClass(java.lang.String classPath,
java.lang.String fieldName)
Returns the JVM-qualified name of the specified field's declaring
class.
|
int |
getFieldNumber(java.lang.String classPath,
java.lang.String fieldName)
Returns the unique field index of a declared, persistent field of a
class.
|
java.lang.String |
getKeyClass(java.lang.String classPath)
Returns the name of the key class of a persistence-capable class.
|
java.lang.String[] |
getManagedFields(java.lang.String classPath)
Returns an array of field names of all declared persistent and
transactional fields of a class.
|
java.lang.String |
getPersistenceCapableSuperClass(java.lang.String classPath)
Returns the name of the persistence-capable superclass of a class.
|
boolean |
isDefaultFetchGroupField(java.lang.String classPath,
java.lang.String fieldName)
Tests whether a field of a class is known to be part of the
Default Fetch Group.
|
boolean |
isKeyField(java.lang.String classPath,
java.lang.String fieldName)
Tests whether a field of a class is known to be Key.
|
boolean |
isKnownNonManagedField(java.lang.String classPath,
java.lang.String fieldName,
java.lang.String fieldSig)
Returns whether a field of a class is known to be non-managed.
|
boolean |
isManagedField(java.lang.String classPath,
java.lang.String fieldName)
Tests whether a field of a class is transient transactional or
persistent.
|
boolean |
isPersistenceCapableClass(java.lang.String classPath)
Tests whether a class is known to be persistence-capable.
|
boolean |
isPersistentField(java.lang.String classPath,
java.lang.String fieldName)
Tests whether a field of a class is persistent.
|
boolean |
isSerializableClass(java.lang.String classPath)
Returns whether a class implements java.io.Serializable
|
boolean |
isTransactionalField(java.lang.String classPath,
java.lang.String fieldName)
Tests whether a field of a class is transient transactional.
|
getFieldFlags, getFieldFlags, getFieldNumber, getKeyFields, getPersistenceCapableRootClass, getSuperKeyClass, isKnownUnenhancableClass, isPersistenceCapableRootClass, printMessage, printWarninggetI18N, getI18N, getI18N, getI18N, getI18N, getI18Naffirm, affirm, affirm, affirmclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFieldFlags, getFieldFlags, getFieldNumber, getKeyFields, getPersistenceCapableRootClass, getSuperKeyClass, isKnownUnenhancableClass, isPersistenceCapableRootClasspublic EnhancerMetaDataJDOModelImpl(java.io.PrintWriter out,
boolean verbose,
java.util.List jdoFileNames,
java.util.List jarFileNames,
java.lang.String sourcePath)
throws EnhancerMetaDataFatalError
EnhancerMetaDataFatalErrorpublic java.lang.String getDeclaringClass(java.lang.String classPath,
java.lang.String fieldName)
throws EnhancerMetaDataUserException,
EnhancerMetaDataFatalError
null for an unkown field.getDeclaringClass in interface EnhancerMetaDataclassPath - the non-null JVM-qualified name of the classfieldName - the non-null name of the fieldnull if there is no such field.EnhancerMetaDataUserExceptionEnhancerMetaDataFatalErrorpublic void declareField(java.lang.String classPath,
java.lang.String fieldName,
java.lang.String fieldSig)
throws EnhancerMetaDataUserException,
EnhancerMetaDataFatalError
declareField in interface EnhancerMetaDataclassPath - the non-null JVM-qualified name of the classfieldName - the non-null name of the fieldfieldSig - the non-null JVM signature of the fieldEnhancerMetaDataUserExceptionEnhancerMetaDataFatalErrorEnhancerMetaData.isPersistenceCapableClass(String)public boolean isPersistenceCapableClass(java.lang.String classPath)
throws EnhancerMetaDataUserException,
EnhancerMetaDataFatalError
isPersistenceCapableClass in interface EnhancerMetaDataclassPath - the non-null JVM-qualified name of the classEnhancerMetaDataUserExceptionEnhancerMetaDataFatalErrorEnhancerMetaData.isKnownUnenhancableClass(String)public boolean isSerializableClass(java.lang.String classPath)
throws EnhancerMetaDataUserException,
EnhancerMetaDataFatalError
isSerializableClass in interface EnhancerMetaDataclassPath - the non-null JVM-qualified name of the classEnhancerMetaDataUserExceptionEnhancerMetaDataFatalErrorpublic java.lang.String getPersistenceCapableSuperClass(java.lang.String classPath)
throws EnhancerMetaDataUserException,
EnhancerMetaDataFatalError
getPersistenceCapableSuperClass in interface EnhancerMetaDataclassPath - the non-null JVM-qualified name of the classEnhancerMetaDataUserExceptionEnhancerMetaDataFatalErrorEnhancerMetaData.isPersistenceCapableClass(String),
EnhancerMetaData.getPersistenceCapableRootClass(String)public java.lang.String getKeyClass(java.lang.String classPath)
throws EnhancerMetaDataUserException,
EnhancerMetaDataFatalError
getKeyClass in interface EnhancerMetaDataclassPath - the non-null JVM-qualified name of the classEnhancerMetaDataUserExceptionEnhancerMetaDataFatalErrorEnhancerMetaData.isPersistenceCapableClass(String)public java.lang.String[] getManagedFields(java.lang.String classPath)
throws EnhancerMetaDataUserException,
EnhancerMetaDataFatalError
getManagedFields in interface EnhancerMetaDataclassPath - the non-null JVM-qualified name of the classEnhancerMetaDataUserExceptionEnhancerMetaDataFatalErrorEnhancerMetaData.getFieldNumber(String, String),
EnhancerMetaData.declareField(String, String, String)public boolean isKnownNonManagedField(java.lang.String classPath,
java.lang.String fieldName,
java.lang.String fieldSig)
throws EnhancerMetaDataUserException,
EnhancerMetaDataFatalError
isKnownNonManagedField in interface EnhancerMetaDataclassPath - the non-null JVM-qualified name of the classfieldName - the non-null name of the fieldfieldSig - the non-null type signature of the fieldEnhancerMetaDataUserExceptionEnhancerMetaDataFatalErrorEnhancerMetaData.isManagedField(String, String),
EnhancerMetaData.declareField(String, String, String)public boolean isManagedField(java.lang.String classPath,
java.lang.String fieldName)
throws EnhancerMetaDataUserException,
EnhancerMetaDataFatalError
isManagedField in interface EnhancerMetaDataisManagedField in class EnhancerMetaDataBaseModelclassPath - the non-null JVM-qualified name of the classfieldName - the non-null name of the fieldEnhancerMetaDataUserExceptionEnhancerMetaDataFatalErrorEnhancerMetaData.isManagedField(String, String)public boolean isPersistentField(java.lang.String classPath,
java.lang.String fieldName)
throws EnhancerMetaDataUserException,
EnhancerMetaDataFatalError
isPersistentField in interface EnhancerMetaDataclassPath - the non-null JVM-qualified name of the classfieldName - the non-null name of the fieldEnhancerMetaDataUserExceptionEnhancerMetaDataFatalErrorEnhancerMetaData.isManagedField(String, String),
EnhancerMetaData.declareField(String, String, String)public boolean isTransactionalField(java.lang.String classPath,
java.lang.String fieldName)
throws EnhancerMetaDataUserException,
EnhancerMetaDataFatalError
isTransactionalField in interface EnhancerMetaDataclassPath - the non-null JVM-qualified name of the classfieldName - the non-null name of the fieldEnhancerMetaDataUserExceptionEnhancerMetaDataFatalErrorEnhancerMetaData.isManagedField(String, String),
EnhancerMetaData.declareField(String, String, String)public boolean isKeyField(java.lang.String classPath,
java.lang.String fieldName)
throws EnhancerMetaDataUserException,
EnhancerMetaDataFatalError
isKeyField in interface EnhancerMetaDataclassPath - the non-null JVM-qualified name of the classfieldName - the non-null name of the fieldEnhancerMetaDataUserExceptionEnhancerMetaDataFatalErrorEnhancerMetaData.isPersistentField(String, String),
EnhancerMetaData.declareField(String, String, String)public boolean isDefaultFetchGroupField(java.lang.String classPath,
java.lang.String fieldName)
throws EnhancerMetaDataUserException,
EnhancerMetaDataFatalError
isDefaultFetchGroupField in interface EnhancerMetaDataclassPath - the non-null JVM-qualified name of the classfieldName - the non-null name of the fieldEnhancerMetaDataUserExceptionEnhancerMetaDataFatalErrorEnhancerMetaData.isPersistentField(String, String),
EnhancerMetaData.declareField(String, String, String)public int getFieldNumber(java.lang.String classPath,
java.lang.String fieldName)
throws EnhancerMetaDataUserException,
EnhancerMetaDataFatalError
getFieldNumber in interface EnhancerMetaDataclassPath - the non-null JVM-qualified name of the classfieldName - the non-null name of the fieldEnhancerMetaDataUserExceptionEnhancerMetaDataFatalErrorEnhancerMetaData.getManagedFields(String),
EnhancerMetaData.declareField(String, String, String)Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.