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