com.ibatis.common.beans
public class ClassInfo extends Object
| Method Summary | |
|---|---|
| String | getClassName()
Gets the name of the class the instance provides information for
|
| Invoker | getGetInvoker(String propertyName) |
| Method | getGetter(String propertyName)
Gets the getter for a property as a Method object
|
| Class | getGetterType(String propertyName)
Gets the type for a property getter
|
| static ClassInfo | getInstance(Class clazz)
Gets an instance of ClassInfo for the specified class.
|
| String[] | getReadablePropertyNames()
Gets an array of the readable properties for an object
|
| Invoker | getSetInvoker(String propertyName) |
| Method | getSetter(String propertyName)
Gets the setter for a property as a Method object
|
| Class | getSetterType(String propertyName)
Gets the type for a property setter
|
| String[] | getWriteablePropertyNames()
Gets an array of the writeable properties for an object
|
| boolean | hasReadableProperty(String propertyName)
Check to see if a class has a readable property by name
|
| boolean | hasWritableProperty(String propertyName)
Check to see if a class has a writeable property by name
|
| Object | instantiateClass() |
| static boolean | isKnownType(Class clazz)
Tells us if the class passed in is a knwon common type
|
| static void | setCacheEnabled(boolean cacheEnabled) |
| static Throwable | unwrapThrowable(Throwable t)
Examines a Throwable object and gets it's root cause
|
Returns: The class name
Parameters: propertyName - the property
Returns: The Method
Parameters: propertyName - the name of the property
Returns: The Class of the propery getter
Parameters: clazz The class for which to lookup the method cache.
Returns: The method cache for the class
Returns: The array
Parameters: propertyName - the property
Returns: The Method
Parameters: propertyName - the name of the property
Returns: The Class of the propery setter
Returns: The array
Parameters: propertyName - the name of the property to check
Returns: True if the object has a readable property by the name
Parameters: propertyName - the name of the property to check
Returns: True if the object has a writeable property by the name
Parameters: clazz The class to check
Returns: True if the class is known
Parameters: t - the exception to examine
Returns: The root cause