Class MapWrapper
- java.lang.Object
-
- org.apache.ibatis.reflection.wrapper.BaseWrapper
-
- org.apache.ibatis.reflection.wrapper.MapWrapper
-
- All Implemented Interfaces:
ObjectWrapper
public class MapWrapper extends BaseWrapper
- Author:
- Clinton Begin
-
-
Field Summary
-
Fields inherited from class org.apache.ibatis.reflection.wrapper.BaseWrapper
metaObject, NO_ARGUMENTS
-
-
Constructor Summary
Constructors Constructor Description MapWrapper(MetaObject metaObject, java.util.Map<java.lang.String,java.lang.Object> map)
-
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)
-
Methods inherited from class org.apache.ibatis.reflection.wrapper.BaseWrapper
getCollectionValue, resolveCollection, setCollectionValue
-
-
-
-
Constructor Detail
-
MapWrapper
public MapWrapper(MetaObject metaObject, java.util.Map<java.lang.String,java.lang.Object> map)
-
-
Method Detail
-
get
public java.lang.Object get(PropertyTokenizer prop)
-
set
public void set(PropertyTokenizer prop, java.lang.Object value)
-
findProperty
public java.lang.String findProperty(java.lang.String name, boolean useCamelCaseMapping)
-
getGetterNames
public java.lang.String[] getGetterNames()
-
getSetterNames
public java.lang.String[] getSetterNames()
-
getSetterType
public java.lang.Class<?> getSetterType(java.lang.String name)
-
getGetterType
public java.lang.Class<?> getGetterType(java.lang.String name)
-
hasSetter
public boolean hasSetter(java.lang.String name)
-
hasGetter
public boolean hasGetter(java.lang.String name)
-
instantiatePropertyValue
public MetaObject instantiatePropertyValue(java.lang.String name, PropertyTokenizer prop, ObjectFactory objectFactory)
-
isCollection
public boolean isCollection()
-
add
public void add(java.lang.Object element)
-
addAll
public <E> void addAll(java.util.List<E> element)
-
-