|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jaffa.persistence.engines.jdbcengine.util.Introspection
Helper class for introspecting Domain objects.
| Constructor Summary | |
Introspection()
|
|
| Method Summary | |
static Field |
getAccessibleField(Class clazz,
String fieldName,
Class datatype)
This method will introspect the input class for for a Field object having the same name as the input fieldName. |
static Method |
getAccessorMethod(Class clazz,
String fieldName,
Class datatype)
This method will introspect the input class for an accessor Method object - getFieldName() or isFieldName() If no Method is found, then it'll recursively call itself for each parent class. |
static Map |
getAccessors(Class clazz,
Map fields,
Map members)
This will introspect the input Class for an AccessibleObject, for each of the input fieldName passed in the 'fields' Map. |
static Method |
getMutatorMethod(Class clazz,
String fieldName,
Class datatype)
This method will introspect the input class for a mutator Method object - setFieldName(). |
static Map |
getMutators(Class clazz,
Map fields,
Map members)
This will introspect the input Class for an AccessibleObject, for each of the input fieldName passed in the 'fields' Map. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Introspection()
| Method Detail |
public static Map getAccessors(Class clazz,
Map fields,
Map members)
clazz - The class to be introspected.fields - The key of this HashMap is the name of the field (String) and the value is the data type (String).members - This map will contain the fields which are to be introspected by using member variables as opposed to getters/setters. The key of this HashMap is the name of the field (String) and the value is the memberName (String).
public static Map getMutators(Class clazz,
Map fields,
Map members)
clazz - The class to be introspected.fields - The key of this HashMap is the name of the field (String) and the value is the data type (String).members - This map will contain the fields which are to be introspected by using member variables as opposed to getters/setters. The key of this HashMap is the name of the field (String) and the value is the memberName (String).
public static Field getAccessibleField(Class clazz,
String fieldName,
Class datatype)
clazz - The class to be introspected.fieldName - The fieldName for which the Field object is to be found.datatype - This is an optional input. If passed then it'll ensure that the Field object has the correct signature.
public static Method getAccessorMethod(Class clazz,
String fieldName,
Class datatype)
clazz - The class to be introspected.fieldName - The fieldName for which the accessor is to be found.datatype - This is an optional input. If passed then it'll ensure that the accessor has the correct signature.
public static Method getMutatorMethod(Class clazz,
String fieldName,
Class datatype)
clazz - The class to be introspected.fieldName - The fieldName for which the mutator is to be found.datatype - This is an optional input. If passed then it'll ensure that the mutator has the correct signature.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||