Methods Summary |
---|
public int | getClassModifiers(java.lang.String classname)Gets the modifiers of a class. The return value is a constant of the
java.lang.reflect.Modifier class.
|
public int | getFieldFlags(java.lang.String classPath, java.lang.String fieldName)Returns the field flags for a declared field of a class.
The following holds for the field flags:
int f = getFieldFlags(classPath, fieldName);
!isManagedField(classPath, fieldName)
==> (f & CHECK_READ == 0) && (f & MEDIATE_READ == 0) &&
(f & CHECK_WRITE == 0) && (f & MEDIATE_WRITE == 0)
isTransientField(classPath, fieldName)
==> (f & CHECK_READ == 0) && (f & MEDIATE_READ == 0) &&
(f & CHECK_WRITE != 0) && (f & MEDIATE_WRITE == 0)
isKeyField(classPath, fieldName)
==> (f & CHECK_READ == 0) && (f & MEDIATE_READ == 0) &&
(f & CHECK_WRITE == 0) && (f & MEDIATE_WRITE != 0)
isDefaultFetchGroupField(classPath, fieldName)
==> (f & CHECK_READ != 0) && (f & MEDIATE_READ != 0) &&
(f & CHECK_WRITE == 0) && (f & MEDIATE_WRITE == 0)
isPersistentField(classPath, fieldName)
&& isKeyField(classPath, fieldName)
&& isDefaultFetchGroupField(classPath, fieldName)
==> (f & CHECK_READ == 0) && (f & MEDIATE_READ == 0) &&
(f & CHECK_WRITE != 0) && (f & MEDIATE_WRITE != 0)
This method requires the field having been declared by declareField().
|
public int[] | getFieldFlags(java.lang.String classPath, java.lang.String[] fieldNames)Returns the field flags for some declared, managed fields of a class.
This method requires all fields having been declared by declareField().
|
public int | getFieldModifiers(java.lang.String classname, java.lang.String fieldname)Gets the modifiers of a field. The return value is a constant of the
java.lang.reflect.Modifier class.
|
public int[] | getFieldNo(java.lang.String classPath, java.lang.String[] fieldNames)Returns the unique field index of some declared, managed fields of a
class.
This method requires all fields having been declared by declareField().
|
public java.lang.String[] | getFieldType(java.lang.String classname, java.lang.String[] fieldnames)Gets the type of some fields.
|
public java.lang.String | getFieldType(java.lang.String classname, java.lang.String fieldname)Gets the type of a field.
|
public java.lang.String | getKeyClass(java.lang.String classPath)Returns the name of the key class of a class.
The following holds:
(String s = getKeyClass(classPath)) != null
==> !isPersistenceCapableClass(s)
&& isPersistenceCapableClass(classPath)
|
public java.lang.String[] | getKeyFields(java.lang.String classPath)Returns an array of field names of all key fields of a class.
This method requires all fields having been declared by declareField().
|
public java.lang.String[] | getKnownClasses()Gets all known classnames.
|
public java.lang.String[] | getKnownFields(java.lang.String classname)Gets all known fieldnames of a class.
|
public java.lang.String | getPersistenceCapableSuperClass(java.lang.String classPath)Returns the name of the persistence-capable superclass of a class.
The following holds:
(String s = getPersistenceCapableSuperClass(classPath)) != null
==> isPersistenceCapableClass(classPath)
&& !isPersistenceCapableRootClass(classPath)
|
public java.lang.String | getSuperKeyClass(java.lang.String classPath)Returns the name of the key class of the next persistence-capable
superclass that defines one.
The following holds:
(String s = getSuperKeyClass(classPath)) != null
==> !isPersistenceCapableClass(s)
&& isPersistenceCapableClass(classPath)
&& !isPersistenceCapableRootClass(classPath)
|
public boolean | isKeyField(java.lang.String classPath, java.lang.String fieldName)Returns whether a field of a class is key.
A key field must be persistent.
The following holds:
isKeyField(classPath, fieldName)
==> isPersistentField(classPath, fieldName)
&& !isDefaultFetchGroupField(classPath, fieldName)
This method requires the field having been declared by declareField().
|
public 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.
This method differs from isManagedField() in that a field may or
may not be managed if its not known as non-managed.
The following holds (not vice versa!):
isKnownNonManagedField(classPath, fieldName)
==> !isManagedField(classPath, fieldName)
This method doesn't require the field having been declared by
declareField().
|
public boolean | isManagedField(java.lang.String classPath, java.lang.String fieldName)Returns whether a field of a class is transient transactional
or persistent.
A managed field must not be known as non-managed and must be either
transient transactional or persistent. The following holds:
isManagedField(classPath, fieldName)
==> !isKnownNonManagedField(classPath, fieldName)
&& (isPersistentField(classPath, fieldName)
^ isTransactionalField(classPath, fieldName))
This method requires the field having been declared by declareField().
|