org.apache.ibatis.reflection.wrapper
Class CollectionWrapper

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

public class CollectionWrapper
extends Object
implements ObjectWrapper


Constructor Summary
CollectionWrapper(MetaObject metaObject, Collection<Object> object)
           
 
Method Summary
 void add(Object element)
           
<E> void
addAll(List<E> element)
           
 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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollectionWrapper

public CollectionWrapper(MetaObject metaObject,
                         Collection<Object> object)
Method Detail

get

public Object get(PropertyTokenizer prop)
Specified by:
get in interface ObjectWrapper

set

public void set(PropertyTokenizer prop,
                Object value)
Specified by:
set in interface ObjectWrapper

findProperty

public String findProperty(String name,
                           boolean useCamelCaseMapping)
Specified by:
findProperty in interface ObjectWrapper

getGetterNames

public String[] getGetterNames()
Specified by:
getGetterNames in interface ObjectWrapper

getSetterNames

public String[] getSetterNames()
Specified by:
getSetterNames in interface ObjectWrapper

getSetterType

public Class<?> getSetterType(String name)
Specified by:
getSetterType in interface ObjectWrapper

getGetterType

public Class<?> getGetterType(String name)
Specified by:
getGetterType in interface ObjectWrapper

hasSetter

public boolean hasSetter(String name)
Specified by:
hasSetter in interface ObjectWrapper

hasGetter

public boolean hasGetter(String name)
Specified by:
hasGetter in interface ObjectWrapper

instantiatePropertyValue

public MetaObject instantiatePropertyValue(String name,
                                           PropertyTokenizer prop,
                                           ObjectFactory objectFactory)
Specified by:
instantiatePropertyValue in interface ObjectWrapper

isCollection

public boolean isCollection()
Specified by:
isCollection in interface ObjectWrapper

add

public void add(Object element)
Specified by:
add in interface ObjectWrapper

addAll

public <E> void addAll(List<E> element)
Specified by:
addAll in interface ObjectWrapper


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