public class CollectionWrapper extends Object implements ObjectWrapper
Constructor and Description |
---|
CollectionWrapper(MetaObject metaObject,
Collection<Object> object) |
Modifier and Type | Method and 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) |
public CollectionWrapper(MetaObject metaObject, Collection<Object> object)
public Object get(PropertyTokenizer prop)
get
in interface ObjectWrapper
public void set(PropertyTokenizer prop, Object value)
set
in interface ObjectWrapper
public String findProperty(String name, boolean useCamelCaseMapping)
findProperty
in interface ObjectWrapper
public String[] getGetterNames()
getGetterNames
in interface ObjectWrapper
public String[] getSetterNames()
getSetterNames
in interface ObjectWrapper
public Class<?> getSetterType(String name)
getSetterType
in interface ObjectWrapper
public Class<?> getGetterType(String name)
getGetterType
in interface ObjectWrapper
public boolean hasSetter(String name)
hasSetter
in interface ObjectWrapper
public boolean hasGetter(String name)
hasGetter
in interface ObjectWrapper
public MetaObject instantiatePropertyValue(String name, PropertyTokenizer prop, ObjectFactory objectFactory)
instantiatePropertyValue
in interface ObjectWrapper
public boolean isCollection()
isCollection
in interface ObjectWrapper
public void add(Object element)
add
in interface ObjectWrapper
public <E> void addAll(List<E> element)
addAll
in interface ObjectWrapper
Copyright © 2010–2015 MyBatis.org. All rights reserved.