Class CollectionWrapper
- java.lang.Object
-
- org.apache.ibatis.reflection.wrapper.CollectionWrapper
-
- All Implemented Interfaces:
ObjectWrapper
public class CollectionWrapper extends Object implements ObjectWrapper
- Author:
- Clinton Begin
-
-
Constructor Summary
Constructors Constructor Description CollectionWrapper(MetaObject metaObject, Collection<Object> object)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)
-
-
-
Constructor Detail
-
CollectionWrapper
public CollectionWrapper(MetaObject metaObject, Collection<Object> object)
-
-
Method Detail
-
get
public Object get(PropertyTokenizer prop)
- Specified by:
get
in interfaceObjectWrapper
-
set
public void set(PropertyTokenizer prop, Object value)
- Specified by:
set
in interfaceObjectWrapper
-
findProperty
public String findProperty(String name, boolean useCamelCaseMapping)
- Specified by:
findProperty
in interfaceObjectWrapper
-
getGetterNames
public String[] getGetterNames()
- Specified by:
getGetterNames
in interfaceObjectWrapper
-
getSetterNames
public String[] getSetterNames()
- Specified by:
getSetterNames
in interfaceObjectWrapper
-
getSetterType
public Class<?> getSetterType(String name)
- Specified by:
getSetterType
in interfaceObjectWrapper
-
getGetterType
public Class<?> getGetterType(String name)
- Specified by:
getGetterType
in interfaceObjectWrapper
-
hasSetter
public boolean hasSetter(String name)
- Specified by:
hasSetter
in interfaceObjectWrapper
-
hasGetter
public boolean hasGetter(String name)
- Specified by:
hasGetter
in interfaceObjectWrapper
-
instantiatePropertyValue
public MetaObject instantiatePropertyValue(String name, PropertyTokenizer prop, ObjectFactory objectFactory)
- Specified by:
instantiatePropertyValue
in interfaceObjectWrapper
-
isCollection
public boolean isCollection()
- Specified by:
isCollection
in interfaceObjectWrapper
-
add
public void add(Object element)
- Specified by:
add
in interfaceObjectWrapper
-
addAll
public <E> void addAll(List<E> element)
- Specified by:
addAll
in interfaceObjectWrapper
-
-