public class EnhancerMetaDataPropertyImpl extends EnhancerMetaDataBaseModel implements ExtendedMetaData
out, unenhancableTypePrefixes, verbose
CHECK_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, 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 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 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 signature) throws EnhancerMetaDataUserException, EnhancerMetaDataFatalError
declareField
in interface EnhancerMetaData
classPath
- the non-null JVM-qualified name of the classfieldName
- the non-null name of the fieldsignature
- 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 final java.lang.String getSuperClass(java.lang.String classname)
getSuperClass
in interface ExtendedMetaData
classname
- the JVM-qualified name of the classpublic 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 boolean isKnownNonManagedField(java.lang.String classPath, java.lang.String fieldName, java.lang.String fieldSig)
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 fieldEnhancerMetaData.isManagedField(String, String)
,
EnhancerMetaData.declareField(String, String, String)
public boolean isManagedField(java.lang.String classPath, java.lang.String fieldName)
isManagedField
in interface EnhancerMetaData
isManagedField
in class EnhancerMetaDataBaseModel
classPath
- 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 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)
public java.lang.String[] getManagedFields(java.lang.String classname)
getManagedFields
in interface EnhancerMetaData
classname
- 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 ExtendedMetaData
public final java.lang.String[] getKnownFields(java.lang.String classname)
getKnownFields
in interface ExtendedMetaData
classname
- The classname.public final int getClassModifiers(java.lang.String classname)
getClassModifiers
in interface ExtendedMetaData
classname
- The classname.Modifier
public final int getFieldModifiers(java.lang.String classname, java.lang.String fieldname)
getFieldModifiers
in interface ExtendedMetaData
classname
- The classname.fieldname
- The fieldname.Modifier
public final java.lang.String getFieldType(java.lang.String classname, java.lang.String fieldname)
ExtendedMetaData
getFieldType
in interface ExtendedMetaData
classname
- The classname.fieldname
- The fieldname.public final java.lang.String[] getFieldType(java.lang.String classname, java.lang.String[] fieldnames)
ExtendedMetaData
getFieldType
in interface ExtendedMetaData
classname
- The classname.fieldnames
- The fieldnames.public final int[] getFieldModifiers(java.lang.String classname, java.lang.String[] fieldnames) throws EnhancerMetaDataUserException, EnhancerMetaDataFatalError
ExtendedMetaData
getFieldModifiers
in interface ExtendedMetaData
classname
- The classname.fieldnames
- The fieldnames.EnhancerMetaDataUserException
EnhancerMetaDataFatalError
Modifier
public static void main(java.lang.String[] argv)
Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.