KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > mchange > v2 > sql > filter > SynchronizedFilterCallableStatement


1 /*
2  * Distributed as part of c3p0 v.0.9.1
3  *
4  * Copyright (C) 2005 Machinery For Change, Inc.
5  *
6  * Author: Steve Waldman <swaldman@mchange.com>
7  *
8  * This library is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU Lesser General Public License version 2.1, as
10  * published by the Free Software Foundation.
11  *
12  * This software is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public License
18  * along with this software; see the file LICENSE. If not, write to the
19  * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
20  * Boston, MA 02111-1307, USA.
21  */

22
23
24 package com.mchange.v2.sql.filter;
25
26 import java.io.InputStream JavaDoc;
27 import java.io.Reader JavaDoc;
28 import java.lang.Object JavaDoc;
29 import java.lang.String JavaDoc;
30 import java.math.BigDecimal JavaDoc;
31 import java.net.URL JavaDoc;
32 import java.sql.Array JavaDoc;
33 import java.sql.Blob JavaDoc;
34 import java.sql.CallableStatement JavaDoc;
35 import java.sql.Clob JavaDoc;
36 import java.sql.Connection JavaDoc;
37 import java.sql.Date JavaDoc;
38 import java.sql.ParameterMetaData JavaDoc;
39 import java.sql.Ref JavaDoc;
40 import java.sql.ResultSet JavaDoc;
41 import java.sql.ResultSetMetaData JavaDoc;
42 import java.sql.SQLException JavaDoc;
43 import java.sql.SQLWarning JavaDoc;
44 import java.sql.Time JavaDoc;
45 import java.sql.Timestamp JavaDoc;
46 import java.util.Calendar JavaDoc;
47 import java.util.Map JavaDoc;
48
49 public abstract class SynchronizedFilterCallableStatement implements CallableStatement JavaDoc
50 {
51     protected CallableStatement JavaDoc inner;
52     
53     public SynchronizedFilterCallableStatement(CallableStatement JavaDoc inner)
54     { this.inner = inner; }
55     
56     public SynchronizedFilterCallableStatement()
57     {}
58     
59     public synchronized void setInner( CallableStatement JavaDoc inner )
60     { this.inner = inner; }
61     
62     public synchronized CallableStatement JavaDoc getInner()
63     { return inner; }
64     
65     public synchronized boolean wasNull() throws SQLException JavaDoc
66     { return inner.wasNull(); }
67     
68     public synchronized BigDecimal JavaDoc getBigDecimal(int a, int b) throws SQLException JavaDoc
69     { return inner.getBigDecimal(a, b); }
70     
71     public synchronized BigDecimal JavaDoc getBigDecimal(int a) throws SQLException JavaDoc
72     { return inner.getBigDecimal(a); }
73     
74     public synchronized BigDecimal JavaDoc getBigDecimal(String JavaDoc a) throws SQLException JavaDoc
75     { return inner.getBigDecimal(a); }
76     
77     public synchronized Timestamp JavaDoc getTimestamp(String JavaDoc a) throws SQLException JavaDoc
78     { return inner.getTimestamp(a); }
79     
80     public synchronized Timestamp JavaDoc getTimestamp(String JavaDoc a, Calendar JavaDoc b) throws SQLException JavaDoc
81     { return inner.getTimestamp(a, b); }
82     
83     public synchronized Timestamp JavaDoc getTimestamp(int a, Calendar JavaDoc b) throws SQLException JavaDoc
84     { return inner.getTimestamp(a, b); }
85     
86     public synchronized Timestamp JavaDoc getTimestamp(int a) throws SQLException JavaDoc
87     { return inner.getTimestamp(a); }
88     
89     public synchronized Blob JavaDoc getBlob(String JavaDoc a) throws SQLException JavaDoc
90     { return inner.getBlob(a); }
91     
92     public synchronized Blob JavaDoc getBlob(int a) throws SQLException JavaDoc
93     { return inner.getBlob(a); }
94     
95     public synchronized Clob JavaDoc getClob(String JavaDoc a) throws SQLException JavaDoc
96     { return inner.getClob(a); }
97     
98     public synchronized Clob JavaDoc getClob(int a) throws SQLException JavaDoc
99     { return inner.getClob(a); }
100     
101     public synchronized void setNull(String JavaDoc a, int b, String JavaDoc c) throws SQLException JavaDoc
102     { inner.setNull(a, b, c); }
103     
104     public synchronized void setNull(String JavaDoc a, int b) throws SQLException JavaDoc
105     { inner.setNull(a, b); }
106     
107     public synchronized void setBigDecimal(String JavaDoc a, BigDecimal JavaDoc b) throws SQLException JavaDoc
108     { inner.setBigDecimal(a, b); }
109     
110     public synchronized void setBytes(String JavaDoc a, byte[] b) throws SQLException JavaDoc
111     { inner.setBytes(a, b); }
112     
113     public synchronized void setTimestamp(String JavaDoc a, Timestamp JavaDoc b, Calendar JavaDoc c) throws SQLException JavaDoc
114     { inner.setTimestamp(a, b, c); }
115     
116     public synchronized void setTimestamp(String JavaDoc a, Timestamp JavaDoc b) throws SQLException JavaDoc
117     { inner.setTimestamp(a, b); }
118     
119     public synchronized void setAsciiStream(String JavaDoc a, InputStream JavaDoc b, int c) throws SQLException JavaDoc
120     { inner.setAsciiStream(a, b, c); }
121     
122     public synchronized void setBinaryStream(String JavaDoc a, InputStream JavaDoc b, int c) throws SQLException JavaDoc
123     { inner.setBinaryStream(a, b, c); }
124     
125     public synchronized void setObject(String JavaDoc a, Object JavaDoc b) throws SQLException JavaDoc
126     { inner.setObject(a, b); }
127     
128     public synchronized void setObject(String JavaDoc a, Object JavaDoc b, int c, int d) throws SQLException JavaDoc
129     { inner.setObject(a, b, c, d); }
130     
131     public synchronized void setObject(String JavaDoc a, Object JavaDoc b, int c) throws SQLException JavaDoc
132     { inner.setObject(a, b, c); }
133     
134     public synchronized void setCharacterStream(String JavaDoc a, Reader JavaDoc b, int c) throws SQLException JavaDoc
135     { inner.setCharacterStream(a, b, c); }
136     
137     public synchronized void registerOutParameter(String JavaDoc a, int b) throws SQLException JavaDoc
138     { inner.registerOutParameter(a, b); }
139     
140     public synchronized void registerOutParameter(int a, int b) throws SQLException JavaDoc
141     { inner.registerOutParameter(a, b); }
142     
143     public synchronized void registerOutParameter(int a, int b, int c) throws SQLException JavaDoc
144     { inner.registerOutParameter(a, b, c); }
145     
146     public synchronized void registerOutParameter(int a, int b, String JavaDoc c) throws SQLException JavaDoc
147     { inner.registerOutParameter(a, b, c); }
148     
149     public synchronized void registerOutParameter(String JavaDoc a, int b, int c) throws SQLException JavaDoc
150     { inner.registerOutParameter(a, b, c); }
151     
152     public synchronized void registerOutParameter(String JavaDoc a, int b, String JavaDoc c) throws SQLException JavaDoc
153     { inner.registerOutParameter(a, b, c); }
154     
155     public synchronized Object JavaDoc getObject(String JavaDoc a, Map JavaDoc b) throws SQLException JavaDoc
156     { return inner.getObject(a, b); }
157     
158     public synchronized Object JavaDoc getObject(int a, Map JavaDoc b) throws SQLException JavaDoc
159     { return inner.getObject(a, b); }
160     
161     public synchronized Object JavaDoc getObject(int a) throws SQLException JavaDoc
162     { return inner.getObject(a); }
163     
164     public synchronized Object JavaDoc getObject(String JavaDoc a) throws SQLException JavaDoc
165     { return inner.getObject(a); }
166     
167     public synchronized boolean getBoolean(int a) throws SQLException JavaDoc
168     { return inner.getBoolean(a); }
169     
170     public synchronized boolean getBoolean(String JavaDoc a) throws SQLException JavaDoc
171     { return inner.getBoolean(a); }
172     
173     public synchronized byte getByte(String JavaDoc a) throws SQLException JavaDoc
174     { return inner.getByte(a); }
175     
176     public synchronized byte getByte(int a) throws SQLException JavaDoc
177     { return inner.getByte(a); }
178     
179     public synchronized short getShort(int a) throws SQLException JavaDoc
180     { return inner.getShort(a); }
181     
182     public synchronized short getShort(String JavaDoc a) throws SQLException JavaDoc
183     { return inner.getShort(a); }
184     
185     public synchronized int getInt(String JavaDoc a) throws SQLException JavaDoc
186     { return inner.getInt(a); }
187     
188     public synchronized int getInt(int a) throws SQLException JavaDoc
189     { return inner.getInt(a); }
190     
191     public synchronized long getLong(int a) throws SQLException JavaDoc
192     { return inner.getLong(a); }
193     
194     public synchronized long getLong(String JavaDoc a) throws SQLException JavaDoc
195     { return inner.getLong(a); }
196     
197     public synchronized float getFloat(String JavaDoc a) throws SQLException JavaDoc
198     { return inner.getFloat(a); }
199     
200     public synchronized float getFloat(int a) throws SQLException JavaDoc
201     { return inner.getFloat(a); }
202     
203     public synchronized double getDouble(String JavaDoc a) throws SQLException JavaDoc
204     { return inner.getDouble(a); }
205     
206     public synchronized double getDouble(int a) throws SQLException JavaDoc
207     { return inner.getDouble(a); }
208     
209     public synchronized byte[] getBytes(int a) throws SQLException JavaDoc
210     { return inner.getBytes(a); }
211     
212     public synchronized byte[] getBytes(String JavaDoc a) throws SQLException JavaDoc
213     { return inner.getBytes(a); }
214     
215     public synchronized URL JavaDoc getURL(String JavaDoc a) throws SQLException JavaDoc
216     { return inner.getURL(a); }
217     
218     public synchronized URL JavaDoc getURL(int a) throws SQLException JavaDoc
219     { return inner.getURL(a); }
220     
221     public synchronized void setBoolean(String JavaDoc a, boolean b) throws SQLException JavaDoc
222     { inner.setBoolean(a, b); }
223     
224     public synchronized void setByte(String JavaDoc a, byte b) throws SQLException JavaDoc
225     { inner.setByte(a, b); }
226     
227     public synchronized void setShort(String JavaDoc a, short b) throws SQLException JavaDoc
228     { inner.setShort(a, b); }
229     
230     public synchronized void setInt(String JavaDoc a, int b) throws SQLException JavaDoc
231     { inner.setInt(a, b); }
232     
233     public synchronized void setLong(String JavaDoc a, long b) throws SQLException JavaDoc
234     { inner.setLong(a, b); }
235     
236     public synchronized void setFloat(String JavaDoc a, float b) throws SQLException JavaDoc
237     { inner.setFloat(a, b); }
238     
239     public synchronized void setDouble(String JavaDoc a, double b) throws SQLException JavaDoc
240     { inner.setDouble(a, b); }
241     
242     public synchronized String JavaDoc getString(String JavaDoc a) throws SQLException JavaDoc
243     { return inner.getString(a); }
244     
245     public synchronized String JavaDoc getString(int a) throws SQLException JavaDoc
246     { return inner.getString(a); }
247     
248     public synchronized Ref JavaDoc getRef(int a) throws SQLException JavaDoc
249     { return inner.getRef(a); }
250     
251     public synchronized Ref JavaDoc getRef(String JavaDoc a) throws SQLException JavaDoc
252     { return inner.getRef(a); }
253     
254     public synchronized void setURL(String JavaDoc a, URL JavaDoc b) throws SQLException JavaDoc
255     { inner.setURL(a, b); }
256     
257     public synchronized void setTime(String JavaDoc a, Time JavaDoc b) throws SQLException JavaDoc
258     { inner.setTime(a, b); }
259     
260     public synchronized void setTime(String JavaDoc a, Time JavaDoc b, Calendar JavaDoc c) throws SQLException JavaDoc
261     { inner.setTime(a, b, c); }
262     
263     public synchronized Time JavaDoc getTime(int a, Calendar JavaDoc b) throws SQLException JavaDoc
264     { return inner.getTime(a, b); }
265     
266     public synchronized Time JavaDoc getTime(String JavaDoc a) throws SQLException JavaDoc
267     { return inner.getTime(a); }
268     
269     public synchronized Time JavaDoc getTime(int a) throws SQLException JavaDoc
270     { return inner.getTime(a); }
271     
272     public synchronized Time JavaDoc getTime(String JavaDoc a, Calendar JavaDoc b) throws SQLException JavaDoc
273     { return inner.getTime(a, b); }
274     
275     public synchronized Date JavaDoc getDate(int a, Calendar JavaDoc b) throws SQLException JavaDoc
276     { return inner.getDate(a, b); }
277     
278     public synchronized Date JavaDoc getDate(String JavaDoc a) throws SQLException JavaDoc
279     { return inner.getDate(a); }
280     
281     public synchronized Date JavaDoc getDate(int a) throws SQLException JavaDoc
282     { return inner.getDate(a); }
283     
284     public synchronized Date JavaDoc getDate(String JavaDoc a, Calendar JavaDoc b) throws SQLException JavaDoc
285     { return inner.getDate(a, b); }
286     
287     public synchronized void setString(String JavaDoc a, String JavaDoc b) throws SQLException JavaDoc
288     { inner.setString(a, b); }
289     
290     public synchronized Array JavaDoc getArray(int a) throws SQLException JavaDoc
291     { return inner.getArray(a); }
292     
293     public synchronized Array JavaDoc getArray(String JavaDoc a) throws SQLException JavaDoc
294     { return inner.getArray(a); }
295     
296     public synchronized void setDate(String JavaDoc a, Date JavaDoc b, Calendar JavaDoc c) throws SQLException JavaDoc
297     { inner.setDate(a, b, c); }
298     
299     public synchronized void setDate(String JavaDoc a, Date JavaDoc b) throws SQLException JavaDoc
300     { inner.setDate(a, b); }
301     
302     public synchronized ResultSetMetaData JavaDoc getMetaData() throws SQLException JavaDoc
303     { return inner.getMetaData(); }
304     
305     public synchronized ResultSet JavaDoc executeQuery() throws SQLException JavaDoc
306     { return inner.executeQuery(); }
307     
308     public synchronized int executeUpdate() throws SQLException JavaDoc
309     { return inner.executeUpdate(); }
310     
311     public synchronized void addBatch() throws SQLException JavaDoc
312     { inner.addBatch(); }
313     
314     public synchronized void setNull(int a, int b, String JavaDoc c) throws SQLException JavaDoc
315     { inner.setNull(a, b, c); }
316     
317     public synchronized void setNull(int a, int b) throws SQLException JavaDoc
318     { inner.setNull(a, b); }
319     
320     public synchronized void setBigDecimal(int a, BigDecimal JavaDoc b) throws SQLException JavaDoc
321     { inner.setBigDecimal(a, b); }
322     
323     public synchronized void setBytes(int a, byte[] b) throws SQLException JavaDoc
324     { inner.setBytes(a, b); }
325     
326     public synchronized void setTimestamp(int a, Timestamp JavaDoc b, Calendar JavaDoc c) throws SQLException JavaDoc
327     { inner.setTimestamp(a, b, c); }
328     
329     public synchronized void setTimestamp(int a, Timestamp JavaDoc b) throws SQLException JavaDoc
330     { inner.setTimestamp(a, b); }
331     
332     public synchronized void setAsciiStream(int a, InputStream JavaDoc b, int c) throws SQLException JavaDoc
333     { inner.setAsciiStream(a, b, c); }
334     
335     public synchronized void setUnicodeStream(int a, InputStream JavaDoc b, int c) throws SQLException JavaDoc
336     { inner.setUnicodeStream(a, b, c); }
337     
338     public synchronized void setBinaryStream(int a, InputStream JavaDoc b, int c) throws SQLException JavaDoc
339     { inner.setBinaryStream(a, b, c); }
340     
341     public synchronized void clearParameters() throws SQLException JavaDoc
342     { inner.clearParameters(); }
343     
344     public synchronized void setObject(int a, Object JavaDoc b) throws SQLException JavaDoc
345     { inner.setObject(a, b); }
346     
347     public synchronized void setObject(int a, Object JavaDoc b, int c, int d) throws SQLException JavaDoc
348     { inner.setObject(a, b, c, d); }
349     
350     public synchronized void setObject(int a, Object JavaDoc b, int c) throws SQLException JavaDoc
351     { inner.setObject(a, b, c); }
352     
353     public synchronized void setCharacterStream(int a, Reader JavaDoc b, int c) throws SQLException JavaDoc
354     { inner.setCharacterStream(a, b, c); }
355     
356     public synchronized void setRef(int a, Ref JavaDoc b) throws SQLException JavaDoc
357     { inner.setRef(a, b); }
358     
359     public synchronized void setBlob(int a, Blob JavaDoc b) throws SQLException JavaDoc
360     { inner.setBlob(a, b); }
361     
362     public synchronized void setClob(int a, Clob JavaDoc b) throws SQLException JavaDoc
363     { inner.setClob(a, b); }
364     
365     public synchronized void setArray(int a, Array JavaDoc b) throws SQLException JavaDoc
366     { inner.setArray(a, b); }
367     
368     public synchronized ParameterMetaData JavaDoc getParameterMetaData() throws SQLException JavaDoc
369     { return inner.getParameterMetaData(); }
370     
371     public synchronized void setBoolean(int a, boolean b) throws SQLException JavaDoc
372     { inner.setBoolean(a, b); }
373     
374     public synchronized void setByte(int a, byte b) throws SQLException JavaDoc
375     { inner.setByte(a, b); }
376     
377     public synchronized void setShort(int a, short b) throws SQLException JavaDoc
378     { inner.setShort(a, b); }
379     
380     public synchronized void setInt(int a, int b) throws SQLException JavaDoc
381     { inner.setInt(a, b); }
382     
383     public synchronized void setLong(int a, long b) throws SQLException JavaDoc
384     { inner.setLong(a, b); }
385     
386     public synchronized void setFloat(int a, float b) throws SQLException JavaDoc
387     { inner.setFloat(a, b); }
388     
389     public synchronized void setDouble(int a, double b) throws SQLException JavaDoc
390     { inner.setDouble(a, b); }
391     
392     public synchronized void setURL(int a, URL JavaDoc b) throws SQLException JavaDoc
393     { inner.setURL(a, b); }
394     
395     public synchronized void setTime(int a, Time JavaDoc b) throws SQLException JavaDoc
396     { inner.setTime(a, b); }
397     
398     public synchronized void setTime(int a, Time JavaDoc b, Calendar JavaDoc c) throws SQLException JavaDoc
399     { inner.setTime(a, b, c); }
400     
401     public synchronized boolean execute() throws SQLException JavaDoc
402     { return inner.execute(); }
403     
404     public synchronized void setString(int a, String JavaDoc b) throws SQLException JavaDoc
405     { inner.setString(a, b); }
406     
407     public synchronized void setDate(int a, Date JavaDoc b, Calendar JavaDoc c) throws SQLException JavaDoc
408     { inner.setDate(a, b, c); }
409     
410     public synchronized void setDate(int a, Date JavaDoc b) throws SQLException JavaDoc
411     { inner.setDate(a, b); }
412     
413     public synchronized SQLWarning JavaDoc getWarnings() throws SQLException JavaDoc
414     { return inner.getWarnings(); }
415     
416     public synchronized void clearWarnings() throws SQLException JavaDoc
417     { inner.clearWarnings(); }
418     
419     public synchronized void setFetchDirection(int a) throws SQLException JavaDoc
420     { inner.setFetchDirection(a); }
421     
422     public synchronized int getFetchDirection() throws SQLException JavaDoc
423     { return inner.getFetchDirection(); }
424     
425     public synchronized void setFetchSize(int a) throws SQLException JavaDoc
426     { inner.setFetchSize(a); }
427     
428     public synchronized int getFetchSize() throws SQLException JavaDoc
429     { return inner.getFetchSize(); }
430     
431     public synchronized int getResultSetHoldability() throws SQLException JavaDoc
432     { return inner.getResultSetHoldability(); }
433     
434     public synchronized ResultSet JavaDoc executeQuery(String JavaDoc a) throws SQLException JavaDoc
435     { return inner.executeQuery(a); }
436     
437     public synchronized int executeUpdate(String JavaDoc a, int b) throws SQLException JavaDoc
438     { return inner.executeUpdate(a, b); }
439     
440     public synchronized int executeUpdate(String JavaDoc a, String JavaDoc[] b) throws SQLException JavaDoc
441     { return inner.executeUpdate(a, b); }
442     
443     public synchronized int executeUpdate(String JavaDoc a, int[] b) throws SQLException JavaDoc
444     { return inner.executeUpdate(a, b); }
445     
446     public synchronized int executeUpdate(String JavaDoc a) throws SQLException JavaDoc
447     { return inner.executeUpdate(a); }
448     
449     public synchronized int getMaxFieldSize() throws SQLException JavaDoc
450     { return inner.getMaxFieldSize(); }
451     
452     public synchronized void setMaxFieldSize(int a) throws SQLException JavaDoc
453     { inner.setMaxFieldSize(a); }
454     
455     public synchronized int getMaxRows() throws SQLException JavaDoc
456     { return inner.getMaxRows(); }
457     
458     public synchronized void setMaxRows(int a) throws SQLException JavaDoc
459     { inner.setMaxRows(a); }
460     
461     public synchronized void setEscapeProcessing(boolean a) throws SQLException JavaDoc
462     { inner.setEscapeProcessing(a); }
463     
464     public synchronized int getQueryTimeout() throws SQLException JavaDoc
465     { return inner.getQueryTimeout(); }
466     
467     public synchronized void setQueryTimeout(int a) throws SQLException JavaDoc
468     { inner.setQueryTimeout(a); }
469     
470     public synchronized void setCursorName(String JavaDoc a) throws SQLException JavaDoc
471     { inner.setCursorName(a); }
472     
473     public synchronized ResultSet JavaDoc getResultSet() throws SQLException JavaDoc
474     { return inner.getResultSet(); }
475     
476     public synchronized int getUpdateCount() throws SQLException JavaDoc
477     { return inner.getUpdateCount(); }
478     
479     public synchronized boolean getMoreResults() throws SQLException JavaDoc
480     { return inner.getMoreResults(); }
481     
482     public synchronized boolean getMoreResults(int a) throws SQLException JavaDoc
483     { return inner.getMoreResults(a); }
484     
485     public synchronized int getResultSetConcurrency() throws SQLException JavaDoc
486     { return inner.getResultSetConcurrency(); }
487     
488     public synchronized int getResultSetType() throws SQLException JavaDoc
489     { return inner.getResultSetType(); }
490     
491     public synchronized void addBatch(String JavaDoc a) throws SQLException JavaDoc
492     { inner.addBatch(a); }
493     
494     public synchronized void clearBatch() throws SQLException JavaDoc
495     { inner.clearBatch(); }
496     
497     public synchronized int[] executeBatch() throws SQLException JavaDoc
498     { return inner.executeBatch(); }
499     
500     public synchronized ResultSet JavaDoc getGeneratedKeys() throws SQLException JavaDoc
501     { return inner.getGeneratedKeys(); }
502     
503     public synchronized void close() throws SQLException JavaDoc
504     { inner.close(); }
505     
506     public synchronized boolean execute(String JavaDoc a, int b) throws SQLException JavaDoc
507     { return inner.execute(a, b); }
508     
509     public synchronized boolean execute(String JavaDoc a) throws SQLException JavaDoc
510     { return inner.execute(a); }
511     
512     public synchronized boolean execute(String JavaDoc a, int[] b) throws SQLException JavaDoc
513     { return inner.execute(a, b); }
514     
515     public synchronized boolean execute(String JavaDoc a, String JavaDoc[] b) throws SQLException JavaDoc
516     { return inner.execute(a, b); }
517     
518     public synchronized Connection JavaDoc getConnection() throws SQLException JavaDoc
519     { return inner.getConnection(); }
520     
521     public synchronized void cancel() throws SQLException JavaDoc
522     { inner.cancel(); }
523 }
524
Popular Tags