org.apache.ibatis.reflection
Class MetaObject

java.lang.Object
  extended by org.apache.ibatis.reflection.MetaObject

public class MetaObject
extends Object


Field Summary
static ObjectFactory DEFAULT_OBJECT_FACTORY
           
static ObjectWrapperFactory DEFAULT_OBJECT_WRAPPER_FACTORY
           
static MetaObject NULL_META_OBJECT
           
 
Method Summary
 void add(Object element)
           
<E> void
addAll(List<E> list)
           
 String findProperty(String propName, boolean useCamelCaseMapping)
           
static MetaObject forObject(Object object)
           
static MetaObject forObject(Object object, ObjectFactory objectFactory, ObjectWrapperFactory objectWrapperFactory)
           
 String[] getGetterNames()
           
 Class<?> getGetterType(String name)
           
 ObjectFactory getObjectFactory()
           
 ObjectWrapper getObjectWrapper()
           
 ObjectWrapperFactory getObjectWrapperFactory()
           
 Object getOriginalObject()
           
 String[] getSetterNames()
           
 Class<?> getSetterType(String name)
           
 Object getValue(String name)
           
 boolean hasGetter(String name)
           
 boolean hasSetter(String name)
           
 boolean isCollection()
           
 MetaObject metaObjectForProperty(String name)
           
 void setValue(String name, Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_OBJECT_FACTORY

public static final ObjectFactory DEFAULT_OBJECT_FACTORY

DEFAULT_OBJECT_WRAPPER_FACTORY

public static final ObjectWrapperFactory DEFAULT_OBJECT_WRAPPER_FACTORY

NULL_META_OBJECT

public static final MetaObject NULL_META_OBJECT
Method Detail

forObject

public static MetaObject forObject(Object object,
                                   ObjectFactory objectFactory,
                                   ObjectWrapperFactory objectWrapperFactory)

forObject

public static MetaObject forObject(Object object)

getObjectFactory

public ObjectFactory getObjectFactory()

getObjectWrapperFactory

public ObjectWrapperFactory getObjectWrapperFactory()

getOriginalObject

public Object getOriginalObject()

findProperty

public String findProperty(String propName,
                           boolean useCamelCaseMapping)

getGetterNames

public String[] getGetterNames()

getSetterNames

public String[] getSetterNames()

getSetterType

public Class<?> getSetterType(String name)

getGetterType

public Class<?> getGetterType(String name)

hasSetter

public boolean hasSetter(String name)

hasGetter

public boolean hasGetter(String name)

getValue

public Object getValue(String name)

setValue

public void setValue(String name,
                     Object value)

metaObjectForProperty

public MetaObject metaObjectForProperty(String name)

getObjectWrapper

public ObjectWrapper getObjectWrapper()

isCollection

public boolean isCollection()

add

public void add(Object element)

addAll

public <E> void addAll(List<E> list)


Copyright © 2010-2012 MyBatis.org. All Rights Reserved.