public class EnhancerMetaDataJDOModelImpl extends EnhancerMetaDataBaseModel implements EnhancerMetaData
out, unenhancableTypePrefixes, verbose
CHECK_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, printWarning
getI18N, getI18N, getI18N, getI18N, getI18N, getI18N
affirm, affirm, affirm, affirm
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFieldFlags, getFieldFlags, getFieldNumber, getKeyFields, getPersistenceCapableRootClass, getSuperKeyClass, isKnownUnenhancableClass, isPersistenceCapableRootClass
public EnhancerMetaDataJDOModelImpl(java.io.PrintWriter out, boolean verbose, java.util.List jdoFileNames, java.util.List jarFileNames, java.lang.String sourcePath) throws EnhancerMetaDataFatalError
EnhancerMetaDataFatalError
public java.lang.String getDeclaringClass(java.lang.String classPath, java.lang.String fieldName) throws EnhancerMetaDataUserException, EnhancerMetaDataFatalError
null
for an unkown field.getDeclaringClass
in interface EnhancerMetaData
classPath
- the non-null JVM-qualified name of the classfieldName
- the non-null name of the fieldnull
if there is no such field.EnhancerMetaDataUserException
EnhancerMetaDataFatalError
public void declareField(java.lang.String classPath, java.lang.String fieldName, java.lang.String fieldSig) throws EnhancerMetaDataUserException, EnhancerMetaDataFatalError
declareField
in interface EnhancerMetaData
classPath
- the non-null JVM-qualified name of the classfieldName
- the non-null name of the fieldfieldSig
- the non-null JVM signature of the fieldEnhancerMetaDataUserException
EnhancerMetaDataFatalError
EnhancerMetaData.isPersistenceCapableClass(String)
public boolean isPersistenceCapableClass(java.lang.String classPath) throws EnhancerMetaDataUserException, EnhancerMetaDataFatalError
isPersistenceCapableClass
in interface EnhancerMetaData
classPath
- the non-null JVM-qualified name of the classEnhancerMetaDataUserException
EnhancerMetaDataFatalError
EnhancerMetaData.isKnownUnenhancableClass(String)
public boolean isSerializableClass(java.lang.String classPath) throws EnhancerMetaDataUserException, EnhancerMetaDataFatalError
isSerializableClass
in interface EnhancerMetaData
classPath
- the non-null JVM-qualified name of the classEnhancerMetaDataUserException
EnhancerMetaDataFatalError
public java.lang.String getPersistenceCapableSuperClass(java.lang.String classPath) throws EnhancerMetaDataUserException, EnhancerMetaDataFatalError
getPersistenceCapableSuperClass
in interface EnhancerMetaData
classPath
- the non-null JVM-qualified name of the classEnhancerMetaDataUserException
EnhancerMetaDataFatalError
EnhancerMetaData.isPersistenceCapableClass(String)
,
EnhancerMetaData.getPersistenceCapableRootClass(String)
public java.lang.String getKeyClass(java.lang.String classPath) throws EnhancerMetaDataUserException, EnhancerMetaDataFatalError
getKeyClass
in interface EnhancerMetaData
classPath
- the non-null JVM-qualified name of the classEnhancerMetaDataUserException
EnhancerMetaDataFatalError
EnhancerMetaData.isPersistenceCapableClass(String)
public java.lang.String[] getManagedFields(java.lang.String classPath) throws EnhancerMetaDataUserException, EnhancerMetaDataFatalError
getManagedFields
in interface EnhancerMetaData
classPath
- the non-null JVM-qualified name of the classEnhancerMetaDataUserException
EnhancerMetaDataFatalError
EnhancerMetaData.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 EnhancerMetaData
classPath
- the non-null JVM-qualified name of the classfieldName
- the non-null name of the fieldfieldSig
- the non-null type signature of the fieldEnhancerMetaDataUserException
EnhancerMetaDataFatalError
EnhancerMetaData.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 EnhancerMetaData
isManagedField
in class EnhancerMetaDataBaseModel
classPath
- the non-null JVM-qualified name of the classfieldName
- the non-null name of the fieldEnhancerMetaDataUserException
EnhancerMetaDataFatalError
EnhancerMetaData.isManagedField(String, String)
public boolean isPersistentField(java.lang.String classPath, java.lang.String fieldName) throws EnhancerMetaDataUserException, EnhancerMetaDataFatalError
isPersistentField
in interface EnhancerMetaData
classPath
- the non-null JVM-qualified name of the classfieldName
- the non-null name of the fieldEnhancerMetaDataUserException
EnhancerMetaDataFatalError
EnhancerMetaData.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 EnhancerMetaData
classPath
- the non-null JVM-qualified name of the classfieldName
- the non-null name of the fieldEnhancerMetaDataUserException
EnhancerMetaDataFatalError
EnhancerMetaData.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 EnhancerMetaData
classPath
- the non-null JVM-qualified name of the classfieldName
- the non-null name of the fieldEnhancerMetaDataUserException
EnhancerMetaDataFatalError
EnhancerMetaData.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 EnhancerMetaData
classPath
- the non-null JVM-qualified name of the classfieldName
- the non-null name of the fieldEnhancerMetaDataUserException
EnhancerMetaDataFatalError
EnhancerMetaData.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 EnhancerMetaData
classPath
- the non-null JVM-qualified name of the classfieldName
- the non-null name of the fieldEnhancerMetaDataUserException
EnhancerMetaDataFatalError
EnhancerMetaData.getManagedFields(String)
,
EnhancerMetaData.declareField(String, String, String)
Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.