|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibatis.common.beans.ClassInfo
public class ClassInfo
This class represents a cached set of class definition information that allows for easy mapping between property names and getter/setter methods.
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public String getClassName()
public Object instantiateClass()
public Method getSetter(String propertyName)
propertyName
- - the property
public Method getGetter(String propertyName)
propertyName
- - the property
public Invoker getSetInvoker(String propertyName)
public Invoker getGetInvoker(String propertyName)
public Class getSetterType(String propertyName)
propertyName
- - the name of the property
public Class getGetterType(String propertyName)
propertyName
- - the name of the property
public String[] getReadablePropertyNames()
public String[] getWriteablePropertyNames()
public boolean hasWritableProperty(String propertyName)
propertyName
- - the name of the property to check
public boolean hasReadableProperty(String propertyName)
propertyName
- - the name of the property to check
public static boolean isKnownType(Class clazz)
clazz
- The class to check
public static ClassInfo getInstance(Class clazz)
clazz
- The class for which to lookup the method cache.
public static void setCacheEnabled(boolean cacheEnabled)
public static Throwable unwrapThrowable(Throwable t)
t
- - the exception to examine
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |