KickJava   Java API By Example, From Geeks To Geeks.

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


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.Clob JavaDoc;
35 import java.sql.Date JavaDoc;
36 import java.sql.Ref JavaDoc;
37 import java.sql.ResultSet JavaDoc;
38 import java.sql.ResultSetMetaData JavaDoc;
39 import java.sql.SQLException JavaDoc;
40 import java.sql.SQLWarning JavaDoc;
41 import java.sql.Statement JavaDoc;
42 import java.sql.Time JavaDoc;
43 import java.sql.Timestamp JavaDoc;
44 import java.util.Calendar JavaDoc;
45 import java.util.Map JavaDoc;
46
47 public abstract class SynchronizedFilterResultSet implements ResultSet JavaDoc
48 {
49     protected ResultSet JavaDoc inner;
50     
51     public SynchronizedFilterResultSet(ResultSet JavaDoc inner)
52     { this.inner = inner; }
53     
54     public SynchronizedFilterResultSet()
55     {}
56     
57     public synchronized void setInner( ResultSet JavaDoc inner )
58     { this.inner = inner; }
59     
60     public synchronized ResultSet JavaDoc getInner()
61     { return inner; }
62     
63     public synchronized ResultSetMetaData JavaDoc getMetaData() throws SQLException JavaDoc
64     { return inner.getMetaData(); }
65     
66     public synchronized SQLWarning JavaDoc getWarnings() throws SQLException JavaDoc
67     { return inner.getWarnings(); }
68     
69     public synchronized void clearWarnings() throws SQLException JavaDoc
70     { inner.clearWarnings(); }
71     
72     public synchronized boolean wasNull() throws SQLException JavaDoc
73     { return inner.wasNull(); }
74     
75     public synchronized BigDecimal JavaDoc getBigDecimal(int a) throws SQLException JavaDoc
76     { return inner.getBigDecimal(a); }
77     
78     public synchronized BigDecimal JavaDoc getBigDecimal(String JavaDoc a, int b) throws SQLException JavaDoc
79     { return inner.getBigDecimal(a, b); }
80     
81     public synchronized BigDecimal JavaDoc getBigDecimal(int a, int b) throws SQLException JavaDoc
82     { return inner.getBigDecimal(a, b); }
83     
84     public synchronized BigDecimal JavaDoc getBigDecimal(String JavaDoc a) throws SQLException JavaDoc
85     { return inner.getBigDecimal(a); }
86     
87     public synchronized Timestamp JavaDoc getTimestamp(int a) throws SQLException JavaDoc
88     { return inner.getTimestamp(a); }
89     
90     public synchronized Timestamp JavaDoc getTimestamp(String JavaDoc a) throws SQLException JavaDoc
91     { return inner.getTimestamp(a); }
92     
93     public synchronized Timestamp JavaDoc getTimestamp(int a, Calendar JavaDoc b) throws SQLException JavaDoc
94     { return inner.getTimestamp(a, b); }
95     
96     public synchronized Timestamp JavaDoc getTimestamp(String JavaDoc a, Calendar JavaDoc b) throws SQLException JavaDoc
97     { return inner.getTimestamp(a, b); }
98     
99     public synchronized InputStream JavaDoc getAsciiStream(String JavaDoc a) throws SQLException JavaDoc
100     { return inner.getAsciiStream(a); }
101     
102     public synchronized InputStream JavaDoc getAsciiStream(int a) throws SQLException JavaDoc
103     { return inner.getAsciiStream(a); }
104     
105     public synchronized InputStream JavaDoc getUnicodeStream(String JavaDoc a) throws SQLException JavaDoc
106     { return inner.getUnicodeStream(a); }
107     
108     public synchronized InputStream JavaDoc getUnicodeStream(int a) throws SQLException JavaDoc
109     { return inner.getUnicodeStream(a); }
110     
111     public synchronized InputStream JavaDoc getBinaryStream(int a) throws SQLException JavaDoc
112     { return inner.getBinaryStream(a); }
113     
114     public synchronized InputStream JavaDoc getBinaryStream(String JavaDoc a) throws SQLException JavaDoc
115     { return inner.getBinaryStream(a); }
116     
117     public synchronized String JavaDoc getCursorName() throws SQLException JavaDoc
118     { return inner.getCursorName(); }
119     
120     public synchronized Reader JavaDoc getCharacterStream(int a) throws SQLException JavaDoc
121     { return inner.getCharacterStream(a); }
122     
123     public synchronized Reader JavaDoc getCharacterStream(String JavaDoc a) throws SQLException JavaDoc
124     { return inner.getCharacterStream(a); }
125     
126     public synchronized boolean isBeforeFirst() throws SQLException JavaDoc
127     { return inner.isBeforeFirst(); }
128     
129     public synchronized boolean isAfterLast() throws SQLException JavaDoc
130     { return inner.isAfterLast(); }
131     
132     public synchronized boolean isFirst() throws SQLException JavaDoc
133     { return inner.isFirst(); }
134     
135     public synchronized boolean isLast() throws SQLException JavaDoc
136     { return inner.isLast(); }
137     
138     public synchronized void beforeFirst() throws SQLException JavaDoc
139     { inner.beforeFirst(); }
140     
141     public synchronized void afterLast() throws SQLException JavaDoc
142     { inner.afterLast(); }
143     
144     public synchronized boolean absolute(int a) throws SQLException JavaDoc
145     { return inner.absolute(a); }
146     
147     public synchronized void setFetchDirection(int a) throws SQLException JavaDoc
148     { inner.setFetchDirection(a); }
149     
150     public synchronized int getFetchDirection() throws SQLException JavaDoc
151     { return inner.getFetchDirection(); }
152     
153     public synchronized void setFetchSize(int a) throws SQLException JavaDoc
154     { inner.setFetchSize(a); }
155     
156     public synchronized int getFetchSize() throws SQLException JavaDoc
157     { return inner.getFetchSize(); }
158     
159     public synchronized int getConcurrency() throws SQLException JavaDoc
160     { return inner.getConcurrency(); }
161     
162     public synchronized boolean rowUpdated() throws SQLException JavaDoc
163     { return inner.rowUpdated(); }
164     
165     public synchronized boolean rowInserted() throws SQLException JavaDoc
166     { return inner.rowInserted(); }
167     
168     public synchronized boolean rowDeleted() throws SQLException JavaDoc
169     { return inner.rowDeleted(); }
170     
171     public synchronized void updateNull(int a) throws SQLException JavaDoc
172     { inner.updateNull(a); }
173     
174     public synchronized void updateNull(String JavaDoc a) throws SQLException JavaDoc
175     { inner.updateNull(a); }
176     
177     public synchronized void updateBoolean(int a, boolean b) throws SQLException JavaDoc
178     { inner.updateBoolean(a, b); }
179     
180     public synchronized void updateBoolean(String JavaDoc a, boolean b) throws SQLException JavaDoc
181     { inner.updateBoolean(a, b); }
182     
183     public synchronized void updateByte(int a, byte b) throws SQLException JavaDoc
184     { inner.updateByte(a, b); }
185     
186     public synchronized void updateByte(String JavaDoc a, byte b) throws SQLException JavaDoc
187     { inner.updateByte(a, b); }
188     
189     public synchronized void updateShort(int a, short b) throws SQLException JavaDoc
190     { inner.updateShort(a, b); }
191     
192     public synchronized void updateShort(String JavaDoc a, short b) throws SQLException JavaDoc
193     { inner.updateShort(a, b); }
194     
195     public synchronized void updateInt(String JavaDoc a, int b) throws SQLException JavaDoc
196     { inner.updateInt(a, b); }
197     
198     public synchronized void updateInt(int a, int b) throws SQLException JavaDoc
199     { inner.updateInt(a, b); }
200     
201     public synchronized void updateLong(int a, long b) throws SQLException JavaDoc
202     { inner.updateLong(a, b); }
203     
204     public synchronized void updateLong(String JavaDoc a, long b) throws SQLException JavaDoc
205     { inner.updateLong(a, b); }
206     
207     public synchronized void updateFloat(String JavaDoc a, float b) throws SQLException JavaDoc
208     { inner.updateFloat(a, b); }
209     
210     public synchronized void updateFloat(int a, float b) throws SQLException JavaDoc
211     { inner.updateFloat(a, b); }
212     
213     public synchronized void updateDouble(String JavaDoc a, double b) throws SQLException JavaDoc
214     { inner.updateDouble(a, b); }
215     
216     public synchronized void updateDouble(int a, double b) throws SQLException JavaDoc
217     { inner.updateDouble(a, b); }
218     
219     public synchronized void updateBigDecimal(int a, BigDecimal JavaDoc b) throws SQLException JavaDoc
220     { inner.updateBigDecimal(a, b); }
221     
222     public synchronized void updateBigDecimal(String JavaDoc a, BigDecimal JavaDoc b) throws SQLException JavaDoc
223     { inner.updateBigDecimal(a, b); }
224     
225     public synchronized void updateString(String JavaDoc a, String JavaDoc b) throws SQLException JavaDoc
226     { inner.updateString(a, b); }
227     
228     public synchronized void updateString(int a, String JavaDoc b) throws SQLException JavaDoc
229     { inner.updateString(a, b); }
230     
231     public synchronized void updateBytes(int a, byte[] b) throws SQLException JavaDoc
232     { inner.updateBytes(a, b); }
233     
234     public synchronized void updateBytes(String JavaDoc a, byte[] b) throws SQLException JavaDoc
235     { inner.updateBytes(a, b); }
236     
237     public synchronized void updateDate(String JavaDoc a, Date JavaDoc b) throws SQLException JavaDoc
238     { inner.updateDate(a, b); }
239     
240     public synchronized void updateDate(int a, Date JavaDoc b) throws SQLException JavaDoc
241     { inner.updateDate(a, b); }
242     
243     public synchronized void updateTimestamp(int a, Timestamp JavaDoc b) throws SQLException JavaDoc
244     { inner.updateTimestamp(a, b); }
245     
246     public synchronized void updateTimestamp(String JavaDoc a, Timestamp JavaDoc b) throws SQLException JavaDoc
247     { inner.updateTimestamp(a, b); }
248     
249     public synchronized void updateAsciiStream(String JavaDoc a, InputStream JavaDoc b, int c) throws SQLException JavaDoc
250     { inner.updateAsciiStream(a, b, c); }
251     
252     public synchronized void updateAsciiStream(int a, InputStream JavaDoc b, int c) throws SQLException JavaDoc
253     { inner.updateAsciiStream(a, b, c); }
254     
255     public synchronized void updateBinaryStream(int a, InputStream JavaDoc b, int c) throws SQLException JavaDoc
256     { inner.updateBinaryStream(a, b, c); }
257     
258     public synchronized void updateBinaryStream(String JavaDoc a, InputStream JavaDoc b, int c) throws SQLException JavaDoc
259     { inner.updateBinaryStream(a, b, c); }
260     
261     public synchronized void updateCharacterStream(int a, Reader JavaDoc b, int c) throws SQLException JavaDoc
262     { inner.updateCharacterStream(a, b, c); }
263     
264     public synchronized void updateCharacterStream(String JavaDoc a, Reader JavaDoc b, int c) throws SQLException JavaDoc
265     { inner.updateCharacterStream(a, b, c); }
266     
267     public synchronized void updateObject(String JavaDoc a, Object JavaDoc b) throws SQLException JavaDoc
268     { inner.updateObject(a, b); }
269     
270     public synchronized void updateObject(int a, Object JavaDoc b) throws SQLException JavaDoc
271     { inner.updateObject(a, b); }
272     
273     public synchronized void updateObject(int a, Object JavaDoc b, int c) throws SQLException JavaDoc
274     { inner.updateObject(a, b, c); }
275     
276     public synchronized void updateObject(String JavaDoc a, Object JavaDoc b, int c) throws SQLException JavaDoc
277     { inner.updateObject(a, b, c); }
278     
279     public synchronized void insertRow() throws SQLException JavaDoc
280     { inner.insertRow(); }
281     
282     public synchronized void updateRow() throws SQLException JavaDoc
283     { inner.updateRow(); }
284     
285     public synchronized void deleteRow() throws SQLException JavaDoc
286     { inner.deleteRow(); }
287     
288     public synchronized void refreshRow() throws SQLException JavaDoc
289     { inner.refreshRow(); }
290     
291     public synchronized void cancelRowUpdates() throws SQLException JavaDoc
292     { inner.cancelRowUpdates(); }
293     
294     public synchronized void moveToInsertRow() throws SQLException JavaDoc
295     { inner.moveToInsertRow(); }
296     
297     public synchronized void moveToCurrentRow() throws SQLException JavaDoc
298     { inner.moveToCurrentRow(); }
299     
300     public synchronized Statement JavaDoc getStatement() throws SQLException JavaDoc
301     { return inner.getStatement(); }
302     
303     public synchronized Blob JavaDoc getBlob(String JavaDoc a) throws SQLException JavaDoc
304     { return inner.getBlob(a); }
305     
306     public synchronized Blob JavaDoc getBlob(int a) throws SQLException JavaDoc
307     { return inner.getBlob(a); }
308     
309     public synchronized Clob JavaDoc getClob(String JavaDoc a) throws SQLException JavaDoc
310     { return inner.getClob(a); }
311     
312     public synchronized Clob JavaDoc getClob(int a) throws SQLException JavaDoc
313     { return inner.getClob(a); }
314     
315     public synchronized void updateRef(String JavaDoc a, Ref JavaDoc b) throws SQLException JavaDoc
316     { inner.updateRef(a, b); }
317     
318     public synchronized void updateRef(int a, Ref JavaDoc b) throws SQLException JavaDoc
319     { inner.updateRef(a, b); }
320     
321     public synchronized void updateBlob(String JavaDoc a, Blob JavaDoc b) throws SQLException JavaDoc
322     { inner.updateBlob(a, b); }
323     
324     public synchronized void updateBlob(int a, Blob JavaDoc b) throws SQLException JavaDoc
325     { inner.updateBlob(a, b); }
326     
327     public synchronized void updateClob(int a, Clob JavaDoc b) throws SQLException JavaDoc
328     { inner.updateClob(a, b); }
329     
330     public synchronized void updateClob(String JavaDoc a, Clob JavaDoc b) throws SQLException JavaDoc
331     { inner.updateClob(a, b); }
332     
333     public synchronized void updateArray(String JavaDoc a, Array JavaDoc b) throws SQLException JavaDoc
334     { inner.updateArray(a, b); }
335     
336     public synchronized void updateArray(int a, Array JavaDoc b) throws SQLException JavaDoc
337     { inner.updateArray(a, b); }
338     
339     public synchronized Object JavaDoc getObject(int a) throws SQLException JavaDoc
340     { return inner.getObject(a); }
341     
342     public synchronized Object JavaDoc getObject(String JavaDoc a, Map JavaDoc b) throws SQLException JavaDoc
343     { return inner.getObject(a, b); }
344     
345     public synchronized Object JavaDoc getObject(String JavaDoc a) throws SQLException JavaDoc
346     { return inner.getObject(a); }
347     
348     public synchronized Object JavaDoc getObject(int a, Map JavaDoc b) throws SQLException JavaDoc
349     { return inner.getObject(a, b); }
350     
351     public synchronized boolean getBoolean(int a) throws SQLException JavaDoc
352     { return inner.getBoolean(a); }
353     
354     public synchronized boolean getBoolean(String JavaDoc a) throws SQLException JavaDoc
355     { return inner.getBoolean(a); }
356     
357     public synchronized byte getByte(String JavaDoc a) throws SQLException JavaDoc
358     { return inner.getByte(a); }
359     
360     public synchronized byte getByte(int a) throws SQLException JavaDoc
361     { return inner.getByte(a); }
362     
363     public synchronized short getShort(String JavaDoc a) throws SQLException JavaDoc
364     { return inner.getShort(a); }
365     
366     public synchronized short getShort(int a) throws SQLException JavaDoc
367     { return inner.getShort(a); }
368     
369     public synchronized int getInt(String JavaDoc a) throws SQLException JavaDoc
370     { return inner.getInt(a); }
371     
372     public synchronized int getInt(int a) throws SQLException JavaDoc
373     { return inner.getInt(a); }
374     
375     public synchronized long getLong(int a) throws SQLException JavaDoc
376     { return inner.getLong(a); }
377     
378     public synchronized long getLong(String JavaDoc a) throws SQLException JavaDoc
379     { return inner.getLong(a); }
380     
381     public synchronized float getFloat(String JavaDoc a) throws SQLException JavaDoc
382     { return inner.getFloat(a); }
383     
384     public synchronized float getFloat(int a) throws SQLException JavaDoc
385     { return inner.getFloat(a); }
386     
387     public synchronized double getDouble(int a) throws SQLException JavaDoc
388     { return inner.getDouble(a); }
389     
390     public synchronized double getDouble(String JavaDoc a) throws SQLException JavaDoc
391     { return inner.getDouble(a); }
392     
393     public synchronized byte[] getBytes(String JavaDoc a) throws SQLException JavaDoc
394     { return inner.getBytes(a); }
395     
396     public synchronized byte[] getBytes(int a) throws SQLException JavaDoc
397     { return inner.getBytes(a); }
398     
399     public synchronized boolean next() throws SQLException JavaDoc
400     { return inner.next(); }
401     
402     public synchronized URL JavaDoc getURL(int a) throws SQLException JavaDoc
403     { return inner.getURL(a); }
404     
405     public synchronized URL JavaDoc getURL(String JavaDoc a) throws SQLException JavaDoc
406     { return inner.getURL(a); }
407     
408     public synchronized int getType() throws SQLException JavaDoc
409     { return inner.getType(); }
410     
411     public synchronized boolean previous() throws SQLException JavaDoc
412     { return inner.previous(); }
413     
414     public synchronized void close() throws SQLException JavaDoc
415     { inner.close(); }
416     
417     public synchronized String JavaDoc getString(String JavaDoc a) throws SQLException JavaDoc
418     { return inner.getString(a); }
419     
420     public synchronized String JavaDoc getString(int a) throws SQLException JavaDoc
421     { return inner.getString(a); }
422     
423     public synchronized Ref JavaDoc getRef(String JavaDoc a) throws SQLException JavaDoc
424     { return inner.getRef(a); }
425     
426     public synchronized Ref JavaDoc getRef(int a) throws SQLException JavaDoc
427     { return inner.getRef(a); }
428     
429     public synchronized Time JavaDoc getTime(int a, Calendar JavaDoc b) throws SQLException JavaDoc
430     { return inner.getTime(a, b); }
431     
432     public synchronized Time JavaDoc getTime(String JavaDoc a) throws SQLException JavaDoc
433     { return inner.getTime(a); }
434     
435     public synchronized Time JavaDoc getTime(int a) throws SQLException JavaDoc
436     { return inner.getTime(a); }
437     
438     public synchronized Time JavaDoc getTime(String JavaDoc a, Calendar JavaDoc b) throws SQLException JavaDoc
439     { return inner.getTime(a, b); }
440     
441     public synchronized Date JavaDoc getDate(String JavaDoc a) throws SQLException JavaDoc
442     { return inner.getDate(a); }
443     
444     public synchronized Date JavaDoc getDate(int a) throws SQLException JavaDoc
445     { return inner.getDate(a); }
446     
447     public synchronized Date JavaDoc getDate(int a, Calendar JavaDoc b) throws SQLException JavaDoc
448     { return inner.getDate(a, b); }
449     
450     public synchronized Date JavaDoc getDate(String JavaDoc a, Calendar JavaDoc b) throws SQLException JavaDoc
451     { return inner.getDate(a, b); }
452     
453     public synchronized boolean first() throws SQLException JavaDoc
454     { return inner.first(); }
455     
456     public synchronized boolean last() throws SQLException JavaDoc
457     { return inner.last(); }
458     
459     public synchronized Array JavaDoc getArray(String JavaDoc a) throws SQLException JavaDoc
460     { return inner.getArray(a); }
461     
462     public synchronized Array JavaDoc getArray(int a) throws SQLException JavaDoc
463     { return inner.getArray(a); }
464     
465     public synchronized boolean relative(int a) throws SQLException JavaDoc
466     { return inner.relative(a); }
467     
468     public synchronized void updateTime(String JavaDoc a, Time JavaDoc b) throws SQLException JavaDoc
469     { inner.updateTime(a, b); }
470     
471     public synchronized void updateTime(int a, Time JavaDoc b) throws SQLException JavaDoc
472     { inner.updateTime(a, b); }
473     
474     public synchronized int findColumn(String JavaDoc a) throws SQLException JavaDoc
475     { return inner.findColumn(a); }
476     
477     public synchronized int getRow() throws SQLException JavaDoc
478     { return inner.getRow(); }
479 }
480
Popular Tags