1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package org.synchronoss.cpo.jdbc.meta;
22
23 import org.slf4j.*;
24 import org.synchronoss.cpo.meta.MethodMapEntry;
25
26 import java.lang.reflect.Method;
27
28
29
30
31
32
33 public class JdbcMethodMapEntry<J,D> extends MethodMapEntry<J,D> implements java.io.Serializable, java.lang.Cloneable {
34
35 private static final Logger logger = LoggerFactory.getLogger(JdbcMethodMapEntry.class);
36
37
38
39 private static final long serialVersionUID = 1L;
40 public static final int METHOD_TYPE_STREAM = 1;
41 public static final int METHOD_TYPE_READER = 2;
42 private Method csGetter = null;
43 private Method csSetter = null;
44
45 public JdbcMethodMapEntry(int methodType, Class<J> javaClass, Class<D> datasourceMethodClass, Method rsGetter, Method bsSetter, Method csGetter, Method csSetter) {
46 super(methodType, javaClass, datasourceMethodClass, rsGetter, bsSetter);
47 this.csGetter = csGetter;
48 this.csSetter = csSetter;
49 }
50
51 public Method getCsGetter() {
52 return csGetter;
53 }
54
55 public Method getCsSetter() {
56 return csSetter;
57 }
58 }