org.apache.ibatis.reflection.wrapper
Class BeanWrapper

java.lang.Object
  extended by org.apache.ibatis.reflection.wrapper.BaseWrapper
      extended by org.apache.ibatis.reflection.wrapper.BeanWrapper
All Implemented Interfaces:
ObjectWrapper

public class BeanWrapper
extends BaseWrapper


Field Summary
 
Fields inherited from class org.apache.ibatis.reflection.wrapper.BaseWrapper
metaObject, NO_ARGUMENTS
 
Constructor Summary
BeanWrapper(MetaObject metaObject, Object object)
           
 
Method Summary
 void add(Object element)
           
<E> void
addAll(List<E> list)
           
 String findProperty(String name, boolean useCamelCaseMapping)
           
 Object get(PropertyTokenizer prop)
           
 String[] getGetterNames()
           
 Class<?> getGetterType(String name)
           
 String[] getSetterNames()
           
 Class<?> getSetterType(String name)
           
 boolean hasGetter(String name)
           
 boolean hasSetter(String name)
           
 MetaObject instantiatePropertyValue(String name, PropertyTokenizer prop, ObjectFactory objectFactory)
           
 boolean isCollection()
           
 void set(PropertyTokenizer prop, Object value)
           
 
Methods inherited from class org.apache.ibatis.reflection.wrapper.BaseWrapper
getCollectionValue, resolveCollection, setCollectionValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanWrapper

public BeanWrapper(MetaObject metaObject,
                   Object object)
Method Detail

get

public Object get(PropertyTokenizer prop)

set

public void set(PropertyTokenizer prop,
                Object value)

findProperty

public String findProperty(String name,
                           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)

instantiatePropertyValue

public MetaObject instantiatePropertyValue(String name,
                                           PropertyTokenizer prop,
                                           ObjectFactory objectFactory)

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.