com.ibatis.common.beans
Class ClassInfo
java.lang.Object
com.ibatis.common.beans.ClassInfo
public class ClassInfo
- extends java.lang.Object
This class represents a cached set of class definition information that
allows for easy mapping between property names and getter/setter methods.
Constructor Summary |
private |
ClassInfo(java.lang.Class clazz)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EMPTY_STRING_ARRAY
private static final java.lang.String[] EMPTY_STRING_ARRAY
simpleTypeSet
private static final java.util.Set simpleTypeSet
classInfoMap
private static final java.util.Map classInfoMap
className
private java.lang.String className
readablePropertyNames
private java.lang.String[] readablePropertyNames
writeablePropertyNames
private java.lang.String[] writeablePropertyNames
setMethods
private java.util.HashMap setMethods
getMethods
private java.util.HashMap getMethods
setTypes
private java.util.HashMap setTypes
getTypes
private java.util.HashMap getTypes
metaClassMap
private java.util.HashMap metaClassMap
ClassInfo
private ClassInfo(java.lang.Class clazz)
addMethods
private void addMethods(java.lang.Class cls)
getClassName
public java.lang.String getClassName()
getSetter
public java.lang.reflect.Method getSetter(java.lang.String propertyName)
getGetter
public java.lang.reflect.Method getGetter(java.lang.String propertyName)
getSetterType
public java.lang.Class getSetterType(java.lang.String propertyName)
getGetterType
public java.lang.Class getGetterType(java.lang.String propertyName)
getReadablePropertyNames
public java.lang.String[] getReadablePropertyNames()
getWriteablePropertyNames
public java.lang.String[] getWriteablePropertyNames()
hasWritableProperty
public boolean hasWritableProperty(java.lang.String propertyName)
hasReadableProperty
public boolean hasReadableProperty(java.lang.String propertyName)
isSimpleType
public static boolean isSimpleType(java.lang.Class clazz)
getInstance
public static ClassInfo getInstance(java.lang.Class clazz)
- Gets an instance of ClassInfo for the specified class.
- Parameters:
clazz
- The class for which to lookup the method cache.
- Returns:
- The method cache for the class