1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.apache.ibatis.submitted.custom_collection_handling;
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 public class CustomObjectWrapper implements org.apache.ibatis.reflection.wrapper.ObjectWrapper {
25
26 private CustomCollection collection;
27
28 public CustomObjectWrapper(CustomCollection collection){
29 this.collection = collection;
30 }
31
32 public Object get(PropertyTokenizer prop) {
33
34 return null;
35 }
36
37 public void set(PropertyTokenizer prop, Object value) {
38
39
40 }
41
42 public String findProperty(String name, boolean useCamelCaseMapping) {
43
44 return null;
45 }
46
47 public String[] getGetterNames() {
48
49 return null;
50 }
51
52 public String[] getSetterNames() {
53
54 return null;
55 }
56
57 public Class<?> getSetterType(String name) {
58
59 return null;
60 }
61
62 public Class<?> getGetterType(String name) {
63
64 return null;
65 }
66
67 public boolean hasSetter(String name) {
68
69 return false;
70 }
71
72 public boolean hasGetter(String name) {
73
74 return false;
75 }
76
77 public MetaObject instantiatePropertyValue(String name, PropertyTokenizer prop, ObjectFactory objectFactory) {
78
79 return null;
80 }
81
82 public boolean isCollection() {
83 return true;
84 }
85
86 public void add(Object element) {
87 ((CustomCollection<Object>) collection).add(element);
88 }
89
90 public <E> void addAll(List<E> element) {
91 ((CustomCollection<Object>) collection).addAll(element);
92 }
93
94 }