public abstract class EnhancerMetaDataBaseModel extends Support implements EnhancerMetaData
| Modifier and Type | Field and Description |
|---|---|
protected java.io.PrintWriter |
out |
protected static java.util.HashSet |
unenhancableTypePrefixes |
protected boolean |
verbose |
CHECK_READ, CHECK_WRITE, MEDIATE_READ, MEDIATE_WRITE, SERIALIZABLE| Constructor and Description |
|---|
EnhancerMetaDataBaseModel(java.io.PrintWriter out,
boolean verbose)
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getFieldFlags(java.lang.String classPath,
java.lang.String fieldName)
Returns the field flags of a declared, managed field of a class.
|
int[] |
getFieldFlags(java.lang.String classPath,
java.lang.String[] fieldNames)
Returns the field flags for some declared, managed fields of a class.
|
int[] |
getFieldNumber(java.lang.String classPath,
java.lang.String[] fieldNames)
Returns the unique field index of some declared, managed fields of a
class.
|
java.lang.String[] |
getKeyFields(java.lang.String classPath)
Returns an array of field names of all key fields of a class.
|
java.lang.String |
getPersistenceCapableRootClass(java.lang.String classPath)
Returns the name of the persistence-capable root class of a class.
|
java.lang.String |
getSuperKeyClass(java.lang.String classPath)
Returns the name of the key class of the next persistence-capable
superclass that defines one.
|
boolean |
isKnownUnenhancableClass(java.lang.String classPath)
Returns whether a class is not to be modified by the enhancer.
|
boolean |
isManagedField(java.lang.String classPath,
java.lang.String fieldName)
Returns whether a field of a class is known to be either transient
transactional or persistent.
|
boolean |
isPersistenceCapableRootClass(java.lang.String classPath)
Returns whether a class is persistence-capable root class.
|
void |
printMessage(java.lang.String msg)
Prints out a verbose message.
|
void |
printWarning(java.lang.String msg)
Prints out a warning message.
|
getI18N, getI18N, getI18N, getI18N, getI18N, getI18Naffirm, affirm, affirm, affirmclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdeclareField, getDeclaringClass, getFieldNumber, getKeyClass, getManagedFields, getPersistenceCapableSuperClass, isDefaultFetchGroupField, isKeyField, isKnownNonManagedField, isPersistenceCapableClass, isPersistentField, isSerializableClass, isTransactionalFieldprotected boolean verbose
protected final java.io.PrintWriter out
protected static final java.util.HashSet unenhancableTypePrefixes
public EnhancerMetaDataBaseModel(java.io.PrintWriter out,
boolean verbose)
throws EnhancerMetaDataUserException,
EnhancerMetaDataFatalError
public void printWarning(java.lang.String msg)
msg - the messagepublic void printMessage(java.lang.String msg)
msg - the messagepublic boolean isKnownUnenhancableClass(java.lang.String classPath)
throws EnhancerMetaDataUserException,
EnhancerMetaDataFatalError
isKnownUnenhancableClass in interface EnhancerMetaDataclassPath - the non-null JVM-qualified name of the classEnhancerMetaDataUserExceptionEnhancerMetaDataFatalErrorEnhancerMetaData.isKnownUnenhancableClass(String)public boolean isPersistenceCapableRootClass(java.lang.String classPath)
throws EnhancerMetaDataUserException,
EnhancerMetaDataFatalError
isPersistenceCapableRootClass in interface EnhancerMetaDataclassPath - the non-null JVM-qualified name of the classEnhancerMetaDataUserExceptionEnhancerMetaDataFatalErrorEnhancerMetaData.isPersistenceCapableRootClass(String)public java.lang.String getPersistenceCapableRootClass(java.lang.String classPath)
throws EnhancerMetaDataUserException,
EnhancerMetaDataFatalError
getPersistenceCapableRootClass in interface EnhancerMetaDataclassPath - the non-null JVM-qualified name of the classEnhancerMetaDataUserExceptionEnhancerMetaDataFatalErrorEnhancerMetaData.getPersistenceCapableRootClass(String)public java.lang.String getSuperKeyClass(java.lang.String classPath)
throws EnhancerMetaDataUserException,
EnhancerMetaDataFatalError
getSuperKeyClass in interface EnhancerMetaDataclassPath - the non-null JVM-qualified name of the classEnhancerMetaDataUserExceptionEnhancerMetaDataFatalErrorEnhancerMetaData.getSuperKeyClass(String)public boolean isManagedField(java.lang.String classPath,
java.lang.String fieldName)
throws EnhancerMetaDataUserException,
EnhancerMetaDataFatalError
isManagedField in interface EnhancerMetaDataclassPath - the non-null JVM-qualified name of the classfieldName - the non-null name of the fieldEnhancerMetaDataUserExceptionEnhancerMetaDataFatalErrorEnhancerMetaData.isManagedField(String, String)public int getFieldFlags(java.lang.String classPath,
java.lang.String fieldName)
throws EnhancerMetaDataUserException,
EnhancerMetaDataFatalError
getFieldFlags in interface EnhancerMetaDataclassPath - the non-null JVM-qualified name of the classfieldName - the non-null name of the fieldEnhancerMetaDataUserExceptionEnhancerMetaDataFatalErrorEnhancerMetaData.getFieldFlags(String, String)public java.lang.String[] getKeyFields(java.lang.String classPath)
throws EnhancerMetaDataUserException,
EnhancerMetaDataFatalError
getKeyFields in interface EnhancerMetaDataclassPath - the non-null JVM-qualified name of the classEnhancerMetaDataUserExceptionEnhancerMetaDataFatalErrorEnhancerMetaData.getKeyFields(String)public int[] getFieldFlags(java.lang.String classPath,
java.lang.String[] fieldNames)
throws EnhancerMetaDataUserException,
EnhancerMetaDataFatalError
getFieldFlags in interface EnhancerMetaDataclassPath - the non-null JVM-qualified name of the classfieldNames - the non-null array of names of the declared fieldsEnhancerMetaDataUserExceptionEnhancerMetaDataFatalErrorEnhancerMetaData.getFieldFlags(String, String[])public int[] getFieldNumber(java.lang.String classPath,
java.lang.String[] fieldNames)
throws EnhancerMetaDataUserException,
EnhancerMetaDataFatalError
getFieldNumber in interface EnhancerMetaDataclassPath - the non-null JVM-qualified name of the classfieldNames - the non-null array of names of the declared fieldsEnhancerMetaDataUserExceptionEnhancerMetaDataFatalErrorEnhancerMetaData.getFieldNumber(String, String[])Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.