|
|||||||||||||||||||
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover | |||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
StatementWrapper.java | - | 0% | 0% | 0% |
|
1 |
/*
|
|
2 |
* Joey and its relative products are published under the terms
|
|
3 |
* of the Apache Software License.
|
|
4 |
*/
|
|
5 |
package org.asyrinx.brownie.jdbc.wrapper;
|
|
6 |
|
|
7 |
import java.sql.Connection;
|
|
8 |
import java.sql.ResultSet;
|
|
9 |
import java.sql.SQLException;
|
|
10 |
import java.sql.SQLWarning;
|
|
11 |
import java.sql.Statement;
|
|
12 |
|
|
13 |
import org.asyrinx.brownie.core.util.Wrapper;
|
|
14 |
|
|
15 |
/**
|
|
16 |
* @author Akima
|
|
17 |
*/
|
|
18 |
public class StatementWrapper extends Wrapper implements Statement { |
|
19 |
|
|
20 |
/**
|
|
21 |
* Constructor for StatementWrapper.
|
|
22 |
*/
|
|
23 | 0 |
public StatementWrapper(Statement source) {
|
24 | 0 |
super(source);
|
25 | 0 |
this.source = source;
|
26 |
} |
|
27 |
|
|
28 |
private final Statement source;
|
|
29 |
|
|
30 |
/**
|
|
31 |
* @param sql
|
|
32 |
* @throws java.sql.SQLException
|
|
33 |
*/
|
|
34 | 0 |
public void addBatch(String sql) throws SQLException { |
35 | 0 |
source.addBatch(sql); |
36 |
} |
|
37 |
|
|
38 |
/**
|
|
39 |
* @throws java.sql.SQLException
|
|
40 |
*/
|
|
41 | 0 |
public void cancel() throws SQLException { |
42 | 0 |
source.cancel(); |
43 |
} |
|
44 |
|
|
45 |
/**
|
|
46 |
* @throws java.sql.SQLException
|
|
47 |
*/
|
|
48 | 0 |
public void clearBatch() throws SQLException { |
49 | 0 |
source.clearBatch(); |
50 |
} |
|
51 |
|
|
52 |
/**
|
|
53 |
* @throws java.sql.SQLException
|
|
54 |
*/
|
|
55 | 0 |
public void clearWarnings() throws SQLException { |
56 | 0 |
source.clearWarnings(); |
57 |
} |
|
58 |
|
|
59 |
/**
|
|
60 |
* @throws java.sql.SQLException
|
|
61 |
*/
|
|
62 | 0 |
public void close() throws SQLException { |
63 | 0 |
source.close(); |
64 |
} |
|
65 |
|
|
66 |
/**
|
|
67 |
* @param sql
|
|
68 |
* @return @throws
|
|
69 |
* java.sql.SQLException
|
|
70 |
*/
|
|
71 | 0 |
public boolean execute(String sql) throws SQLException { |
72 | 0 |
return source.execute(sql);
|
73 |
} |
|
74 |
|
|
75 |
/**
|
|
76 |
* @param sql
|
|
77 |
* @param autoGeneratedKeys
|
|
78 |
* @return @throws
|
|
79 |
* java.sql.SQLException
|
|
80 |
*/
|
|
81 | 0 |
public boolean execute(String sql, int autoGeneratedKeys) |
82 |
throws SQLException {
|
|
83 | 0 |
return source.execute(sql, autoGeneratedKeys);
|
84 |
} |
|
85 |
|
|
86 |
/**
|
|
87 |
* @param sql
|
|
88 |
* @param columnIndexes
|
|
89 |
* @return @throws
|
|
90 |
* java.sql.SQLException
|
|
91 |
*/
|
|
92 | 0 |
public boolean execute(String sql, int[] columnIndexes) throws SQLException { |
93 | 0 |
return source.execute(sql, columnIndexes);
|
94 |
} |
|
95 |
|
|
96 |
/**
|
|
97 |
* @param sql
|
|
98 |
* @param columnNames
|
|
99 |
* @return @throws
|
|
100 |
* java.sql.SQLException
|
|
101 |
*/
|
|
102 | 0 |
public boolean execute(String sql, String[] columnNames) |
103 |
throws SQLException {
|
|
104 | 0 |
return source.execute(sql, columnNames);
|
105 |
} |
|
106 |
|
|
107 |
/**
|
|
108 |
* @return @throws
|
|
109 |
* java.sql.SQLException
|
|
110 |
*/
|
|
111 | 0 |
public int[] executeBatch() throws SQLException { |
112 | 0 |
return source.executeBatch();
|
113 |
} |
|
114 |
|
|
115 |
/**
|
|
116 |
* @param sql
|
|
117 |
* @return @throws
|
|
118 |
* java.sql.SQLException
|
|
119 |
*/
|
|
120 | 0 |
public ResultSet executeQuery(String sql) throws SQLException { |
121 | 0 |
return source.executeQuery(sql);
|
122 |
} |
|
123 |
|
|
124 |
/**
|
|
125 |
* @param sql
|
|
126 |
* @return @throws
|
|
127 |
* java.sql.SQLException
|
|
128 |
*/
|
|
129 | 0 |
public int executeUpdate(String sql) throws SQLException { |
130 | 0 |
return source.executeUpdate(sql);
|
131 |
} |
|
132 |
|
|
133 |
/**
|
|
134 |
* @param sql
|
|
135 |
* @param autoGeneratedKeys
|
|
136 |
* @return @throws
|
|
137 |
* java.sql.SQLException
|
|
138 |
*/
|
|
139 | 0 |
public int executeUpdate(String sql, int autoGeneratedKeys) |
140 |
throws SQLException {
|
|
141 | 0 |
return source.executeUpdate(sql, autoGeneratedKeys);
|
142 |
} |
|
143 |
|
|
144 |
/**
|
|
145 |
* @param sql
|
|
146 |
* @param columnIndexes
|
|
147 |
* @return @throws
|
|
148 |
* java.sql.SQLException
|
|
149 |
*/
|
|
150 | 0 |
public int executeUpdate(String sql, int[] columnIndexes) |
151 |
throws SQLException {
|
|
152 | 0 |
return source.executeUpdate(sql, columnIndexes);
|
153 |
} |
|
154 |
|
|
155 |
/**
|
|
156 |
* @param sql
|
|
157 |
* @param columnNames
|
|
158 |
* @return @throws
|
|
159 |
* java.sql.SQLException
|
|
160 |
*/
|
|
161 | 0 |
public int executeUpdate(String sql, String[] columnNames) |
162 |
throws SQLException {
|
|
163 | 0 |
return source.executeUpdate(sql, columnNames);
|
164 |
} |
|
165 |
|
|
166 |
/**
|
|
167 |
* @return @throws
|
|
168 |
* java.sql.SQLException
|
|
169 |
*/
|
|
170 | 0 |
public Connection getConnection() throws SQLException { |
171 | 0 |
return source.getConnection();
|
172 |
} |
|
173 |
|
|
174 |
/**
|
|
175 |
* @return @throws
|
|
176 |
* java.sql.SQLException
|
|
177 |
*/
|
|
178 | 0 |
public int getFetchDirection() throws SQLException { |
179 | 0 |
return source.getFetchDirection();
|
180 |
} |
|
181 |
|
|
182 |
/**
|
|
183 |
* @return @throws
|
|
184 |
* java.sql.SQLException
|
|
185 |
*/
|
|
186 | 0 |
public int getFetchSize() throws SQLException { |
187 | 0 |
return source.getFetchSize();
|
188 |
} |
|
189 |
|
|
190 |
/**
|
|
191 |
* @return @throws
|
|
192 |
* java.sql.SQLException
|
|
193 |
*/
|
|
194 | 0 |
public ResultSet getGeneratedKeys() throws SQLException { |
195 | 0 |
return source.getGeneratedKeys();
|
196 |
} |
|
197 |
|
|
198 |
/**
|
|
199 |
* @return @throws
|
|
200 |
* java.sql.SQLException
|
|
201 |
*/
|
|
202 | 0 |
public int getMaxFieldSize() throws SQLException { |
203 | 0 |
return source.getMaxFieldSize();
|
204 |
} |
|
205 |
|
|
206 |
/**
|
|
207 |
* @return @throws
|
|
208 |
* java.sql.SQLException
|
|
209 |
*/
|
|
210 | 0 |
public int getMaxRows() throws SQLException { |
211 | 0 |
return source.getMaxRows();
|
212 |
} |
|
213 |
|
|
214 |
/**
|
|
215 |
* @return @throws
|
|
216 |
* java.sql.SQLException
|
|
217 |
*/
|
|
218 | 0 |
public boolean getMoreResults() throws SQLException { |
219 | 0 |
return source.getMoreResults();
|
220 |
} |
|
221 |
|
|
222 |
/**
|
|
223 |
* @param current
|
|
224 |
* @return @throws
|
|
225 |
* java.sql.SQLException
|
|
226 |
*/
|
|
227 | 0 |
public boolean getMoreResults(int current) throws SQLException { |
228 | 0 |
return source.getMoreResults(current);
|
229 |
} |
|
230 |
|
|
231 |
/**
|
|
232 |
* @return @throws
|
|
233 |
* java.sql.SQLException
|
|
234 |
*/
|
|
235 | 0 |
public int getQueryTimeout() throws SQLException { |
236 | 0 |
return source.getQueryTimeout();
|
237 |
} |
|
238 |
|
|
239 |
/**
|
|
240 |
* @return @throws
|
|
241 |
* java.sql.SQLException
|
|
242 |
*/
|
|
243 | 0 |
public ResultSet getResultSet() throws SQLException { |
244 | 0 |
return source.getResultSet();
|
245 |
} |
|
246 |
|
|
247 |
/**
|
|
248 |
* @return @throws
|
|
249 |
* java.sql.SQLException
|
|
250 |
*/
|
|
251 | 0 |
public int getResultSetConcurrency() throws SQLException { |
252 | 0 |
return source.getResultSetConcurrency();
|
253 |
} |
|
254 |
|
|
255 |
/**
|
|
256 |
* @return @throws
|
|
257 |
* java.sql.SQLException
|
|
258 |
*/
|
|
259 | 0 |
public int getResultSetHoldability() throws SQLException { |
260 | 0 |
return source.getResultSetHoldability();
|
261 |
} |
|
262 |
|
|
263 |
/**
|
|
264 |
* @return @throws
|
|
265 |
* java.sql.SQLException
|
|
266 |
*/
|
|
267 | 0 |
public int getResultSetType() throws SQLException { |
268 | 0 |
return source.getResultSetType();
|
269 |
} |
|
270 |
|
|
271 |
/**
|
|
272 |
* @return @throws
|
|
273 |
* java.sql.SQLException
|
|
274 |
*/
|
|
275 | 0 |
public int getUpdateCount() throws SQLException { |
276 | 0 |
return source.getUpdateCount();
|
277 |
} |
|
278 |
|
|
279 |
/**
|
|
280 |
* @return @throws
|
|
281 |
* java.sql.SQLException
|
|
282 |
*/
|
|
283 | 0 |
public SQLWarning getWarnings() throws SQLException { |
284 | 0 |
return source.getWarnings();
|
285 |
} |
|
286 |
|
|
287 |
/**
|
|
288 |
* @param name
|
|
289 |
* @throws java.sql.SQLException
|
|
290 |
*/
|
|
291 | 0 |
public void setCursorName(String name) throws SQLException { |
292 | 0 |
source.setCursorName(name); |
293 |
} |
|
294 |
|
|
295 |
/**
|
|
296 |
* @param enable
|
|
297 |
* @throws java.sql.SQLException
|
|
298 |
*/
|
|
299 | 0 |
public void setEscapeProcessing(boolean enable) throws SQLException { |
300 | 0 |
source.setEscapeProcessing(enable); |
301 |
} |
|
302 |
|
|
303 |
/**
|
|
304 |
* @param direction
|
|
305 |
* @throws java.sql.SQLException
|
|
306 |
*/
|
|
307 | 0 |
public void setFetchDirection(int direction) throws SQLException { |
308 | 0 |
source.setFetchDirection(direction); |
309 |
} |
|
310 |
|
|
311 |
/**
|
|
312 |
* @param rows
|
|
313 |
* @throws java.sql.SQLException
|
|
314 |
*/
|
|
315 | 0 |
public void setFetchSize(int rows) throws SQLException { |
316 | 0 |
source.setFetchSize(rows); |
317 |
} |
|
318 |
|
|
319 |
/**
|
|
320 |
* @param max
|
|
321 |
* @throws java.sql.SQLException
|
|
322 |
*/
|
|
323 | 0 |
public void setMaxFieldSize(int max) throws SQLException { |
324 | 0 |
source.setMaxFieldSize(max); |
325 |
} |
|
326 |
|
|
327 |
/**
|
|
328 |
* @param max
|
|
329 |
* @throws java.sql.SQLException
|
|
330 |
*/
|
|
331 | 0 |
public void setMaxRows(int max) throws SQLException { |
332 | 0 |
source.setMaxRows(max); |
333 |
} |
|
334 |
|
|
335 |
/**
|
|
336 |
* @param seconds
|
|
337 |
* @throws java.sql.SQLException
|
|
338 |
*/
|
|
339 | 0 |
public void setQueryTimeout(int seconds) throws SQLException { |
340 | 0 |
source.setQueryTimeout(seconds); |
341 |
} |
|
342 |
|
|
343 |
} |
|