public class EnhancerMetaDataPropertyImpl extends EnhancerMetaDataBaseModel implements ExtendedMetaData
out, unenhancableTypePrefixes, verboseCHECK_READ, CHECK_WRITE, MEDIATE_READ, MEDIATE_WRITE, SERIALIZABLE| Constructor and Description |
|---|
EnhancerMetaDataPropertyImpl(java.io.PrintWriter out,
boolean verbose,
java.util.Properties properties)
Creates an instance.
|
EnhancerMetaDataPropertyImpl(java.io.PrintWriter out,
boolean verbose,
java.lang.String fileName)
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
declareField(java.lang.String classPath,
java.lang.String fieldName,
java.lang.String signature)
Declares a field to the JDO model passing its type information.
|
int |
getClassModifiers(java.lang.String classname)
Gets the access modifier of a class.
|
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 |
getFieldModifiers(java.lang.String classname,
java.lang.String fieldname)
Gets the access modifier of a field.
|
int[] |
getFieldModifiers(java.lang.String classname,
java.lang.String[] fieldnames)
Gets the modifiers of some fields.
|
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 |
getFieldType(java.lang.String classname,
java.lang.String fieldname)
Gets the type of a field.
|
java.lang.String[] |
getFieldType(java.lang.String classname,
java.lang.String[] fieldnames)
Gets the type of some fields.
|
java.lang.String |
getKeyClass(java.lang.String classPath)
Returns the name of the key class of a persistence-capable class.
|
java.lang.String[] |
getKnownClasses()
Not member of EnhancerMetaData Interface.
|
java.lang.String[] |
getKnownFields(java.lang.String classname)
Gets all known fields of a class.
|
java.lang.String[] |
getManagedFields(java.lang.String classname)
Returns an array of field names of all declared, persistent fields
of a class.
|
java.lang.String |
getPersistenceCapableSuperClass(java.lang.String classPath)
Returns the name of the persistence-capable superclass of a class.
|
java.lang.String |
getSuperClass(java.lang.String classname)
Returns the superclass of a class.
|
boolean |
isDefaultFetchGroupField(java.lang.String classPath,
java.lang.String fieldName)
Returns 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)
Returns whether a field of a class is known to be Primary 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)
Returns whether a field of a class is transient transactional
or persistent.
|
boolean |
isPersistenceCapableClass(java.lang.String classPath)
Returns whether a class is known to be persistence-capable.
|
boolean |
isPersistentField(java.lang.String classPath,
java.lang.String fieldName)
Returns whether a field of a class is known to be 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)
Returns whether a field of a class is known to be transactional.
|
static void |
main(java.lang.String[] argv) |
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 EnhancerMetaDataPropertyImpl(java.io.PrintWriter out,
boolean verbose,
java.util.Properties properties)
throws EnhancerMetaDataUserException,
EnhancerMetaDataFatalError
public EnhancerMetaDataPropertyImpl(java.io.PrintWriter out,
boolean verbose,
java.lang.String fileName)
throws EnhancerMetaDataUserException,
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 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 signature)
throws EnhancerMetaDataUserException,
EnhancerMetaDataFatalError
declareField in interface EnhancerMetaDataclassPath - the non-null JVM-qualified name of the classfieldName - the non-null name of the fieldsignature - 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 final java.lang.String getSuperClass(java.lang.String classname)
getSuperClass in interface ExtendedMetaDataclassname - the JVM-qualified name of the classpublic 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 boolean isKnownNonManagedField(java.lang.String classPath,
java.lang.String fieldName,
java.lang.String fieldSig)
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 fieldEnhancerMetaData.isManagedField(String, String),
EnhancerMetaData.declareField(String, String, String)public boolean isManagedField(java.lang.String classPath,
java.lang.String fieldName)
isManagedField in interface EnhancerMetaDataisManagedField in class EnhancerMetaDataBaseModelclassPath - the non-null JVM-qualified name of the classfieldName - the non-null name of the fieldEnhancerMetaData.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)public java.lang.String[] getManagedFields(java.lang.String classname)
getManagedFields in interface EnhancerMetaDataclassname - the non-null JVM-qualified name of the classEnhancerMetaData.getFieldNumber(String, String),
EnhancerMetaData.declareField(String, String, String)public final java.lang.String[] getKnownClasses()
getKnownClasses in interface ExtendedMetaDatapublic final java.lang.String[] getKnownFields(java.lang.String classname)
getKnownFields in interface ExtendedMetaDataclassname - The classname.public final int getClassModifiers(java.lang.String classname)
getClassModifiers in interface ExtendedMetaDataclassname - The classname.Modifierpublic final int getFieldModifiers(java.lang.String classname,
java.lang.String fieldname)
getFieldModifiers in interface ExtendedMetaDataclassname - The classname.fieldname - The fieldname.Modifierpublic final java.lang.String getFieldType(java.lang.String classname,
java.lang.String fieldname)
ExtendedMetaDatagetFieldType in interface ExtendedMetaDataclassname - The classname.fieldname - The fieldname.public final java.lang.String[] getFieldType(java.lang.String classname,
java.lang.String[] fieldnames)
ExtendedMetaDatagetFieldType in interface ExtendedMetaDataclassname - The classname.fieldnames - The fieldnames.public final int[] getFieldModifiers(java.lang.String classname,
java.lang.String[] fieldnames)
throws EnhancerMetaDataUserException,
EnhancerMetaDataFatalError
ExtendedMetaDatagetFieldModifiers in interface ExtendedMetaDataclassname - The classname.fieldnames - The fieldnames.EnhancerMetaDataUserExceptionEnhancerMetaDataFatalErrorModifierpublic static void main(java.lang.String[] argv)
Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.