|
|||||||||||||||||||
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 | |||||||||||||||
PreparedStatementWrapper.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.io.InputStream;
|
|
8 |
import java.io.Reader;
|
|
9 |
import java.math.BigDecimal;
|
|
10 |
import java.net.URL;
|
|
11 |
import java.sql.Array;
|
|
12 |
import java.sql.Blob;
|
|
13 |
import java.sql.Clob;
|
|
14 |
import java.sql.Date;
|
|
15 |
import java.sql.ParameterMetaData;
|
|
16 |
import java.sql.PreparedStatement;
|
|
17 |
import java.sql.Ref;
|
|
18 |
import java.sql.ResultSet;
|
|
19 |
import java.sql.ResultSetMetaData;
|
|
20 |
import java.sql.SQLException;
|
|
21 |
import java.sql.Time;
|
|
22 |
import java.sql.Timestamp;
|
|
23 |
import java.util.Calendar;
|
|
24 |
|
|
25 |
/**
|
|
26 |
* @author Akima
|
|
27 |
*/
|
|
28 |
public class PreparedStatementWrapper extends StatementWrapper implements |
|
29 |
PreparedStatement { |
|
30 |
|
|
31 |
/**
|
|
32 |
* Constructor for PreparedStatementWrapper.
|
|
33 |
*/
|
|
34 | 0 |
public PreparedStatementWrapper(PreparedStatement source) {
|
35 | 0 |
super(source);
|
36 | 0 |
this.source = source;
|
37 |
} |
|
38 |
|
|
39 |
private final PreparedStatement source;
|
|
40 |
|
|
41 |
/**
|
|
42 |
* @throws java.sql.SQLException
|
|
43 |
*/
|
|
44 | 0 |
public void addBatch() throws SQLException { |
45 | 0 |
source.addBatch(); |
46 |
} |
|
47 |
|
|
48 |
/**
|
|
49 |
* @throws java.sql.SQLException
|
|
50 |
*/
|
|
51 | 0 |
public void clearParameters() throws SQLException { |
52 | 0 |
source.clearParameters(); |
53 |
} |
|
54 |
|
|
55 |
/**
|
|
56 |
* @return @throws
|
|
57 |
* java.sql.SQLException
|
|
58 |
*/
|
|
59 | 0 |
public boolean execute() throws SQLException { |
60 | 0 |
return source.execute();
|
61 |
} |
|
62 |
|
|
63 |
/**
|
|
64 |
* @return @throws
|
|
65 |
* java.sql.SQLException
|
|
66 |
*/
|
|
67 | 0 |
public ResultSet executeQuery() throws SQLException { |
68 | 0 |
return source.executeQuery();
|
69 |
} |
|
70 |
|
|
71 |
/**
|
|
72 |
* @return @throws
|
|
73 |
* java.sql.SQLException
|
|
74 |
*/
|
|
75 | 0 |
public int executeUpdate() throws SQLException { |
76 | 0 |
return source.executeUpdate();
|
77 |
} |
|
78 |
|
|
79 |
/**
|
|
80 |
* @return @throws
|
|
81 |
* java.sql.SQLException
|
|
82 |
*/
|
|
83 | 0 |
public ResultSetMetaData getMetaData() throws SQLException { |
84 | 0 |
return source.getMetaData();
|
85 |
} |
|
86 |
|
|
87 |
/**
|
|
88 |
* @return @throws
|
|
89 |
* java.sql.SQLException
|
|
90 |
*/
|
|
91 | 0 |
public ParameterMetaData getParameterMetaData() throws SQLException { |
92 | 0 |
return source.getParameterMetaData();
|
93 |
} |
|
94 |
|
|
95 |
/**
|
|
96 |
* @param i
|
|
97 |
* @param x
|
|
98 |
* @throws java.sql.SQLException
|
|
99 |
*/
|
|
100 | 0 |
public void setArray(int i, Array x) throws SQLException { |
101 | 0 |
source.setArray(i, x); |
102 |
} |
|
103 |
|
|
104 |
/**
|
|
105 |
* @param parameterIndex
|
|
106 |
* @param x
|
|
107 |
* @param length
|
|
108 |
* @throws java.sql.SQLException
|
|
109 |
*/
|
|
110 | 0 |
public void setAsciiStream(int parameterIndex, InputStream x, int length) |
111 |
throws SQLException {
|
|
112 | 0 |
source.setAsciiStream(parameterIndex, x, length); |
113 |
} |
|
114 |
|
|
115 |
/**
|
|
116 |
* @param parameterIndex
|
|
117 |
* @param x
|
|
118 |
* @throws java.sql.SQLException
|
|
119 |
*/
|
|
120 | 0 |
public void setBigDecimal(int parameterIndex, BigDecimal x) |
121 |
throws SQLException {
|
|
122 | 0 |
source.setBigDecimal(parameterIndex, x); |
123 |
} |
|
124 |
|
|
125 |
/**
|
|
126 |
* @param parameterIndex
|
|
127 |
* @param x
|
|
128 |
* @param length
|
|
129 |
* @throws java.sql.SQLException
|
|
130 |
*/
|
|
131 | 0 |
public void setBinaryStream(int parameterIndex, InputStream x, int length) |
132 |
throws SQLException {
|
|
133 | 0 |
source.setBinaryStream(parameterIndex, x, length); |
134 |
} |
|
135 |
|
|
136 |
/**
|
|
137 |
* @param i
|
|
138 |
* @param x
|
|
139 |
* @throws java.sql.SQLException
|
|
140 |
*/
|
|
141 | 0 |
public void setBlob(int i, Blob x) throws SQLException { |
142 | 0 |
source.setBlob(i, x); |
143 |
} |
|
144 |
|
|
145 |
/**
|
|
146 |
* @param parameterIndex
|
|
147 |
* @param x
|
|
148 |
* @throws java.sql.SQLException
|
|
149 |
*/
|
|
150 | 0 |
public void setBoolean(int parameterIndex, boolean x) throws SQLException { |
151 | 0 |
source.setBoolean(parameterIndex, x); |
152 |
} |
|
153 |
|
|
154 |
/**
|
|
155 |
* @param parameterIndex
|
|
156 |
* @param x
|
|
157 |
* @throws java.sql.SQLException
|
|
158 |
*/
|
|
159 | 0 |
public void setByte(int parameterIndex, byte x) throws SQLException { |
160 | 0 |
source.setByte(parameterIndex, x); |
161 |
} |
|
162 |
|
|
163 |
/**
|
|
164 |
* @param parameterIndex
|
|
165 |
* @param x
|
|
166 |
* @throws java.sql.SQLException
|
|
167 |
*/
|
|
168 | 0 |
public void setBytes(int parameterIndex, byte[] x) throws SQLException { |
169 | 0 |
source.setBytes(parameterIndex, x); |
170 |
} |
|
171 |
|
|
172 |
/**
|
|
173 |
* @param parameterIndex
|
|
174 |
* @param reader
|
|
175 |
* @param length
|
|
176 |
* @throws java.sql.SQLException
|
|
177 |
*/
|
|
178 | 0 |
public void setCharacterStream(int parameterIndex, Reader reader, int length) |
179 |
throws SQLException {
|
|
180 | 0 |
source.setCharacterStream(parameterIndex, reader, length); |
181 |
} |
|
182 |
|
|
183 |
/**
|
|
184 |
* @param i
|
|
185 |
* @param x
|
|
186 |
* @throws java.sql.SQLException
|
|
187 |
*/
|
|
188 | 0 |
public void setClob(int i, Clob x) throws SQLException { |
189 | 0 |
source.setClob(i, x); |
190 |
} |
|
191 |
|
|
192 |
/**
|
|
193 |
* @param parameterIndex
|
|
194 |
* @param x
|
|
195 |
* @throws java.sql.SQLException
|
|
196 |
*/
|
|
197 | 0 |
public void setDate(int parameterIndex, Date x) throws SQLException { |
198 | 0 |
source.setDate(parameterIndex, x); |
199 |
} |
|
200 |
|
|
201 |
/**
|
|
202 |
* @param parameterIndex
|
|
203 |
* @param x
|
|
204 |
* @param cal
|
|
205 |
* @throws java.sql.SQLException
|
|
206 |
*/
|
|
207 | 0 |
public void setDate(int parameterIndex, Date x, Calendar cal) |
208 |
throws SQLException {
|
|
209 | 0 |
source.setDate(parameterIndex, x, cal); |
210 |
} |
|
211 |
|
|
212 |
/**
|
|
213 |
* @param parameterIndex
|
|
214 |
* @param x
|
|
215 |
* @throws java.sql.SQLException
|
|
216 |
*/
|
|
217 | 0 |
public void setDouble(int parameterIndex, double x) throws SQLException { |
218 | 0 |
source.setDouble(parameterIndex, x); |
219 |
} |
|
220 |
|
|
221 |
/**
|
|
222 |
* @param parameterIndex
|
|
223 |
* @param x
|
|
224 |
* @throws java.sql.SQLException
|
|
225 |
*/
|
|
226 | 0 |
public void setFloat(int parameterIndex, float x) throws SQLException { |
227 | 0 |
source.setFloat(parameterIndex, x); |
228 |
} |
|
229 |
|
|
230 |
/**
|
|
231 |
* @param parameterIndex
|
|
232 |
* @param x
|
|
233 |
* @throws java.sql.SQLException
|
|
234 |
*/
|
|
235 | 0 |
public void setInt(int parameterIndex, int x) throws SQLException { |
236 | 0 |
source.setInt(parameterIndex, x); |
237 |
} |
|
238 |
|
|
239 |
/**
|
|
240 |
* @param parameterIndex
|
|
241 |
* @param x
|
|
242 |
* @throws java.sql.SQLException
|
|
243 |
*/
|
|
244 | 0 |
public void setLong(int parameterIndex, long x) throws SQLException { |
245 | 0 |
source.setLong(parameterIndex, x); |
246 |
} |
|
247 |
|
|
248 |
/**
|
|
249 |
* @param parameterIndex
|
|
250 |
* @param sqlType
|
|
251 |
* @throws java.sql.SQLException
|
|
252 |
*/
|
|
253 | 0 |
public void setNull(int parameterIndex, int sqlType) throws SQLException { |
254 | 0 |
source.setNull(parameterIndex, sqlType); |
255 |
} |
|
256 |
|
|
257 |
/**
|
|
258 |
* @param paramIndex
|
|
259 |
* @param sqlType
|
|
260 |
* @param typeName
|
|
261 |
* @throws java.sql.SQLException
|
|
262 |
*/
|
|
263 | 0 |
public void setNull(int paramIndex, int sqlType, String typeName) |
264 |
throws SQLException {
|
|
265 | 0 |
source.setNull(paramIndex, sqlType, typeName); |
266 |
} |
|
267 |
|
|
268 |
/**
|
|
269 |
* @param parameterIndex
|
|
270 |
* @param x
|
|
271 |
* @throws java.sql.SQLException
|
|
272 |
*/
|
|
273 | 0 |
public void setObject(int parameterIndex, Object x) throws SQLException { |
274 | 0 |
source.setObject(parameterIndex, x); |
275 |
} |
|
276 |
|
|
277 |
/**
|
|
278 |
* @param parameterIndex
|
|
279 |
* @param x
|
|
280 |
* @param targetSqlType
|
|
281 |
* @throws java.sql.SQLException
|
|
282 |
*/
|
|
283 | 0 |
public void setObject(int parameterIndex, Object x, int targetSqlType) |
284 |
throws SQLException {
|
|
285 | 0 |
source.setObject(parameterIndex, x, targetSqlType); |
286 |
} |
|
287 |
|
|
288 |
/**
|
|
289 |
* @param parameterIndex
|
|
290 |
* @param x
|
|
291 |
* @param targetSqlType
|
|
292 |
* @param scale
|
|
293 |
* @throws java.sql.SQLException
|
|
294 |
*/
|
|
295 | 0 |
public void setObject(int parameterIndex, Object x, int targetSqlType, |
296 |
int scale) throws SQLException { |
|
297 | 0 |
source.setObject(parameterIndex, x, targetSqlType, scale); |
298 |
} |
|
299 |
|
|
300 |
/**
|
|
301 |
* @param i
|
|
302 |
* @param x
|
|
303 |
* @throws java.sql.SQLException
|
|
304 |
*/
|
|
305 | 0 |
public void setRef(int i, Ref x) throws SQLException { |
306 | 0 |
source.setRef(i, x); |
307 |
} |
|
308 |
|
|
309 |
/**
|
|
310 |
* @param parameterIndex
|
|
311 |
* @param x
|
|
312 |
* @throws java.sql.SQLException
|
|
313 |
*/
|
|
314 | 0 |
public void setShort(int parameterIndex, short x) throws SQLException { |
315 | 0 |
source.setShort(parameterIndex, x); |
316 |
} |
|
317 |
|
|
318 |
/**
|
|
319 |
* @param parameterIndex
|
|
320 |
* @param x
|
|
321 |
* @throws java.sql.SQLException
|
|
322 |
*/
|
|
323 | 0 |
public void setString(int parameterIndex, String x) throws SQLException { |
324 | 0 |
source.setString(parameterIndex, x); |
325 |
} |
|
326 |
|
|
327 |
/**
|
|
328 |
* @param parameterIndex
|
|
329 |
* @param x
|
|
330 |
* @throws java.sql.SQLException
|
|
331 |
*/
|
|
332 | 0 |
public void setTime(int parameterIndex, Time x) throws SQLException { |
333 | 0 |
source.setTime(parameterIndex, x); |
334 |
} |
|
335 |
|
|
336 |
/**
|
|
337 |
* @param parameterIndex
|
|
338 |
* @param x
|
|
339 |
* @param cal
|
|
340 |
* @throws java.sql.SQLException
|
|
341 |
*/
|
|
342 | 0 |
public void setTime(int parameterIndex, Time x, Calendar cal) |
343 |
throws SQLException {
|
|
344 | 0 |
source.setTime(parameterIndex, x, cal); |
345 |
} |
|
346 |
|
|
347 |
/**
|
|
348 |
* @param parameterIndex
|
|
349 |
* @param x
|
|
350 |
* @throws java.sql.SQLException
|
|
351 |
*/
|
|
352 | 0 |
public void setTimestamp(int parameterIndex, Timestamp x) |
353 |
throws SQLException {
|
|
354 | 0 |
source.setTimestamp(parameterIndex, x); |
355 |
} |
|
356 |
|
|
357 |
/**
|
|
358 |
* @param parameterIndex
|
|
359 |
* @param x
|
|
360 |
* @param cal
|
|
361 |
* @throws java.sql.SQLException
|
|
362 |
*/
|
|
363 | 0 |
public void setTimestamp(int parameterIndex, Timestamp x, Calendar cal) |
364 |
throws SQLException {
|
|
365 | 0 |
source.setTimestamp(parameterIndex, x, cal); |
366 |
} |
|
367 |
|
|
368 |
/**
|
|
369 |
* @param parameterIndex
|
|
370 |
* @param x
|
|
371 |
* @param length
|
|
372 |
* @throws java.sql.SQLException
|
|
373 |
* @deprecated
|
|
374 |
*/
|
|
375 | 0 |
public void setUnicodeStream(int parameterIndex, InputStream x, int length) |
376 |
throws SQLException {
|
|
377 |
//preparedStatement.setUnicodeStream(parameterIndex, x, length);
|
|
378 |
} |
|
379 |
|
|
380 |
/**
|
|
381 |
* @param parameterIndex
|
|
382 |
* @param x
|
|
383 |
* @throws java.sql.SQLException
|
|
384 |
*/
|
|
385 | 0 |
public void setURL(int parameterIndex, URL x) throws SQLException { |
386 | 0 |
source.setURL(parameterIndex, x); |
387 |
} |
|
388 |
|
|
389 |
} |
|