1 package com.github.smokestack.jca.cci;
2
3 import javax.resource.ResourceException;
4 import javax.resource.cci.ResultSetInfo;
5
6 import org.apache.commons.lang.builder.ReflectionToStringBuilder;
7 import org.apache.commons.lang.builder.ToStringStyle;
8
9 import com.github.smokestack.exception.NeedsMockDefinitionException;
10
11 public class MockResultSetInfo implements ResultSetInfo {
12
13 public MockResultSetInfo() {
14 }
15
16
17
18
19 public boolean deletesAreDetected(int type) throws ResourceException {
20 return _deletesAreDetected(type);
21 }
22
23 public boolean _deletesAreDetected(int type) throws ResourceException {
24 throw new NeedsMockDefinitionException();
25 }
26
27
28
29
30 public boolean insertsAreDetected(int type) throws ResourceException {
31 return _insertsAreDetected(type);
32 }
33
34 public boolean _insertsAreDetected(int type) throws ResourceException {
35 throw new NeedsMockDefinitionException();
36 }
37
38
39
40
41 public boolean othersDeletesAreVisible(int type) throws ResourceException {
42 return _othersDeletesAreVisible(type);
43 }
44
45 public boolean _othersDeletesAreVisible(int type) throws ResourceException {
46 throw new NeedsMockDefinitionException();
47 }
48
49
50
51
52 public boolean othersInsertsAreVisible(int type) throws ResourceException {
53 return _othersInsertsAreVisible(type);
54 }
55
56 public boolean _othersInsertsAreVisible(int type) throws ResourceException {
57 throw new NeedsMockDefinitionException();
58 }
59
60
61
62
63 public boolean othersUpdatesAreVisible(int type) throws ResourceException {
64 return _othersUpdatesAreVisible(type);
65 }
66
67 public boolean _othersUpdatesAreVisible(int type) throws ResourceException {
68 throw new NeedsMockDefinitionException();
69 }
70
71
72
73
74 public boolean ownDeletesAreVisible(int type) throws ResourceException {
75 return _ownDeletesAreVisible(type);
76 }
77
78 public boolean _ownDeletesAreVisible(int type) throws ResourceException {
79 throw new NeedsMockDefinitionException();
80 }
81
82
83
84
85 public boolean ownInsertsAreVisible(int type) throws ResourceException {
86 return _ownInsertsAreVisible(type);
87 }
88
89 public boolean _ownInsertsAreVisible(int type) throws ResourceException {
90 throw new NeedsMockDefinitionException();
91 }
92
93
94
95
96 public boolean ownUpdatesAreVisible(int type) throws ResourceException {
97 return _ownUpdatesAreVisible(type);
98 }
99
100 public boolean _ownUpdatesAreVisible(int type) throws ResourceException {
101 throw new NeedsMockDefinitionException();
102 }
103
104
105
106
107 public boolean supportsResultSetType(int type) throws ResourceException {
108 return _supportsResultSetType(type);
109 }
110
111 public boolean _supportsResultSetType(int type) throws ResourceException {
112 throw new NeedsMockDefinitionException();
113 }
114
115
116
117
118 public boolean supportsResultTypeConcurrency(int type, int concurrency) throws ResourceException {
119 return _supportsResultTypeConcurrency(type, concurrency);
120 }
121
122 public boolean _supportsResultTypeConcurrency(int type, int concurrency) throws ResourceException {
123 throw new NeedsMockDefinitionException();
124 }
125
126
127
128
129 public boolean updatesAreDetected(int type) throws ResourceException {
130 return _updatesAreDetected(type);
131 }
132
133 public boolean _updatesAreDetected(int type) throws ResourceException {
134 throw new NeedsMockDefinitionException();
135 }
136
137 public String toString(){
138 return ReflectionToStringBuilder.toString(this, ToStringStyle.MULTI_LINE_STYLE);
139 }
140 }