|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jdo.impl.enhancer.util.Assertion
org.apache.jdo.impl.enhancer.util.Support
org.apache.jdo.impl.enhancer.meta.util.EnhancerMetaDataBaseModel
org.apache.jdo.impl.enhancer.meta.prop.EnhancerMetaDataPropertyImpl
public class EnhancerMetaDataPropertyImpl
Provides the JDO meta information based on properties.
| Field Summary |
|---|
| Fields inherited from class org.apache.jdo.impl.enhancer.meta.util.EnhancerMetaDataBaseModel |
|---|
out, unenhancableTypePrefixes, verbose |
| Fields inherited from class org.apache.jdo.impl.enhancer.util.Support |
|---|
timer |
| Fields inherited from interface org.apache.jdo.impl.enhancer.meta.EnhancerMetaData |
|---|
CHECK_READ, CHECK_WRITE, MEDIATE_READ, MEDIATE_WRITE, SERIALIZABLE |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class org.apache.jdo.impl.enhancer.meta.util.EnhancerMetaDataBaseModel |
|---|
getFieldFlags, getFieldFlags, getFieldNumber, getKeyFields, getPersistenceCapableRootClass, getSuperKeyClass, isKnownUnenhancableClass, isPersistenceCapableRootClass, printMessage, printWarning |
| Methods inherited from class org.apache.jdo.impl.enhancer.util.Support |
|---|
getI18N, getI18N, getI18N, getI18N, getI18N, getI18N |
| Methods inherited from class org.apache.jdo.impl.enhancer.util.Assertion |
|---|
affirm, affirm, affirm, affirm |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.jdo.impl.enhancer.meta.EnhancerMetaData |
|---|
getFieldFlags, getFieldFlags, getFieldNumber, getKeyFields, getPersistenceCapableRootClass, getSuperKeyClass, isKnownUnenhancableClass, isPersistenceCapableRootClass |
| Constructor Detail |
|---|
public EnhancerMetaDataPropertyImpl(java.io.PrintWriter out,
boolean verbose,
java.util.Properties properties)
throws EnhancerMetaDataUserException,
EnhancerMetaDataFatalError
EnhancerMetaDataUserException
EnhancerMetaDataFatalError
public EnhancerMetaDataPropertyImpl(java.io.PrintWriter out,
boolean verbose,
java.lang.String fileName)
throws EnhancerMetaDataUserException,
EnhancerMetaDataFatalError
EnhancerMetaDataUserException
EnhancerMetaDataFatalError| Method Detail |
|---|
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 field
null 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 EnhancerMetaDataclassPath - the non-null JVM-qualified name of the classfieldName - the non-null name of the fieldsignature - the non-null JVM signature of the field
EnhancerMetaDataUserException
EnhancerMetaDataFatalErrorEnhancerMetaData.isPersistenceCapableClass(String)
public boolean isPersistenceCapableClass(java.lang.String classPath)
throws EnhancerMetaDataUserException,
EnhancerMetaDataFatalError
isPersistenceCapableClass in interface EnhancerMetaDataclassPath - the non-null JVM-qualified name of the class
EnhancerMetaDataUserException
EnhancerMetaDataFatalErrorEnhancerMetaData.isKnownUnenhancableClass(String)
public boolean isSerializableClass(java.lang.String classPath)
throws EnhancerMetaDataUserException,
EnhancerMetaDataFatalError
isSerializableClass in interface EnhancerMetaDataclassPath - the non-null JVM-qualified name of the class
EnhancerMetaDataUserException
EnhancerMetaDataFatalError
public java.lang.String getPersistenceCapableSuperClass(java.lang.String classPath)
throws EnhancerMetaDataUserException,
EnhancerMetaDataFatalError
getPersistenceCapableSuperClass in interface EnhancerMetaDataclassPath - the non-null JVM-qualified name of the class
EnhancerMetaDataUserException
EnhancerMetaDataFatalErrorEnhancerMetaData.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 class
public java.lang.String getKeyClass(java.lang.String classPath)
throws EnhancerMetaDataUserException,
EnhancerMetaDataFatalError
getKeyClass in interface EnhancerMetaDataclassPath - the non-null JVM-qualified name of the class
EnhancerMetaDataUserException
EnhancerMetaDataFatalErrorEnhancerMetaData.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 field
EnhancerMetaData.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 field
EnhancerMetaData.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 field
EnhancerMetaDataUserException
EnhancerMetaDataFatalErrorEnhancerMetaData.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 field
EnhancerMetaDataUserException
EnhancerMetaDataFatalErrorEnhancerMetaData.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 field
EnhancerMetaDataUserException
EnhancerMetaDataFatalErrorEnhancerMetaData.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 field
EnhancerMetaDataUserException
EnhancerMetaDataFatalErrorEnhancerMetaData.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 field
EnhancerMetaDataUserException
EnhancerMetaDataFatalErrorEnhancerMetaData.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 class
EnhancerMetaData.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.
Modifier
public final int getFieldModifiers(java.lang.String classname,
java.lang.String fieldname)
getFieldModifiers in interface ExtendedMetaDataclassname - The classname.fieldname - The fieldname.
Modifier
public final java.lang.String getFieldType(java.lang.String classname,
java.lang.String fieldname)
ExtendedMetaData
getFieldType in interface ExtendedMetaDataclassname - The classname.fieldname - The fieldname.
public final java.lang.String[] getFieldType(java.lang.String classname,
java.lang.String[] fieldnames)
ExtendedMetaData
getFieldType in interface ExtendedMetaDataclassname - The classname.fieldnames - The fieldnames.
public final int[] getFieldModifiers(java.lang.String classname,
java.lang.String[] fieldnames)
throws EnhancerMetaDataUserException,
EnhancerMetaDataFatalError
ExtendedMetaData
getFieldModifiers in interface ExtendedMetaDataclassname - The classname.fieldnames - The fieldnames.
EnhancerMetaDataUserException
EnhancerMetaDataFatalErrorModifierpublic static void main(java.lang.String[] argv)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||