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 final CustomCollection collection;
27
28 public CustomObjectWrapper(CustomCollection collection) {
29 this.collection = collection;
30 }
31
32 @Override
33 public Object get(PropertyTokenizer prop) {
34
35 return null;
36 }
37
38 @Override
39 public void set(PropertyTokenizer prop, Object value) {
40
41 }
42
43 @Override
44 public String findProperty(String name, boolean useCamelCaseMapping) {
45
46 return null;
47 }
48
49 @Override
50 public String[] getGetterNames() {
51
52 return null;
53 }
54
55 @Override
56 public String[] getSetterNames() {
57
58 return null;
59 }
60
61 @Override
62 public Class<?> getSetterType(String name) {
63
64 return null;
65 }
66
67 @Override
68 public Class<?> getGetterType(String name) {
69
70 return null;
71 }
72
73 @Override
74 public boolean hasSetter(String name) {
75
76 return false;
77 }
78
79 @Override
80 public boolean hasGetter(String name) {
81
82 return false;
83 }
84
85 @Override
86 public MetaObject instantiatePropertyValue(String name, PropertyTokenizer prop, ObjectFactory objectFactory) {
87
88 return null;
89 }
90
91 @Override
92 public boolean isCollection() {
93 return true;
94 }
95
96 @Override
97 public void add(Object element) {
98 ((CustomCollection<Object>) collection).add(element);
99 }
100
101 @Override
102 public <E> void addAll(List<E> element) {
103 ((CustomCollection<Object>) collection).addAll(element);
104 }
105
106 }