1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.apache.ibatis.reflection.wrapper;
17
18 import java.util.List;
19
20 import org.apache.ibatis.reflection.MetaObject;
21 import org.apache.ibatis.reflection.factory.ObjectFactory;
22 import org.apache.ibatis.reflection.property.PropertyTokenizer;
23
24
25
26
27 public interface ObjectWrapper {
28
29 Object get(PropertyTokenizer prop);
30
31 void set(PropertyTokenizer prop, Object value);
32
33 String findProperty(String name, boolean useCamelCaseMapping);
34
35 String[] getGetterNames();
36
37 String[] getSetterNames();
38
39 Class<?> getSetterType(String name);
40
41 Class<?> getGetterType(String name);
42
43 boolean hasSetter(String name);
44
45 boolean hasGetter(String name);
46
47 MetaObject instantiatePropertyValue(String name, PropertyTokenizer prop, ObjectFactory objectFactory);
48
49 boolean isCollection();
50
51 public void add(Object element);
52
53 public <E> void addAll(List<E> element);
54
55 }