001: /*
002: * Distributed as part of c3p0 v.0.9.1.2
003: *
004: * Copyright (C) 2005 Machinery For Change, Inc.
005: *
006: * Author: Steve Waldman <swaldman@mchange.com>
007: *
008: * This library is free software; you can redistribute it and/or modify
009: * it under the terms of the GNU Lesser General Public License version 2.1, as
010: * published by the Free Software Foundation.
011: *
012: * This software is distributed in the hope that it will be useful,
013: * but WITHOUT ANY WARRANTY; without even the implied warranty of
014: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
015: * GNU Lesser General Public License for more details.
016: *
017: * You should have received a copy of the GNU Lesser General Public License
018: * along with this software; see the file LICENSE. If not, write to the
019: * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
020: * Boston, MA 02111-1307, USA.
021: */
022:
023: package com.mchange.v2.sql.filter;
024:
025: import java.io.InputStream;
026: import java.io.Reader;
027: import java.lang.Object;
028: import java.lang.String;
029: import java.math.BigDecimal;
030: import java.net.URL;
031: import java.sql.Array;
032: import java.sql.Blob;
033: import java.sql.Clob;
034: import java.sql.Date;
035: import java.sql.Ref;
036: import java.sql.ResultSet;
037: import java.sql.ResultSetMetaData;
038: import java.sql.SQLException;
039: import java.sql.SQLWarning;
040: import java.sql.Statement;
041: import java.sql.Time;
042: import java.sql.Timestamp;
043: import java.util.Calendar;
044: import java.util.Map;
045:
046: public abstract class FilterResultSet implements ResultSet {
047: protected ResultSet inner;
048:
049: public FilterResultSet(ResultSet inner) {
050: this .inner = inner;
051: }
052:
053: public FilterResultSet() {
054: }
055:
056: public void setInner(ResultSet inner) {
057: this .inner = inner;
058: }
059:
060: public ResultSet getInner() {
061: return inner;
062: }
063:
064: public ResultSetMetaData getMetaData() throws SQLException {
065: return inner.getMetaData();
066: }
067:
068: public SQLWarning getWarnings() throws SQLException {
069: return inner.getWarnings();
070: }
071:
072: public void clearWarnings() throws SQLException {
073: inner.clearWarnings();
074: }
075:
076: public boolean wasNull() throws SQLException {
077: return inner.wasNull();
078: }
079:
080: public BigDecimal getBigDecimal(int a) throws SQLException {
081: return inner.getBigDecimal(a);
082: }
083:
084: public BigDecimal getBigDecimal(String a, int b)
085: throws SQLException {
086: return inner.getBigDecimal(a, b);
087: }
088:
089: public BigDecimal getBigDecimal(int a, int b) throws SQLException {
090: return inner.getBigDecimal(a, b);
091: }
092:
093: public BigDecimal getBigDecimal(String a) throws SQLException {
094: return inner.getBigDecimal(a);
095: }
096:
097: public Timestamp getTimestamp(int a) throws SQLException {
098: return inner.getTimestamp(a);
099: }
100:
101: public Timestamp getTimestamp(String a) throws SQLException {
102: return inner.getTimestamp(a);
103: }
104:
105: public Timestamp getTimestamp(int a, Calendar b)
106: throws SQLException {
107: return inner.getTimestamp(a, b);
108: }
109:
110: public Timestamp getTimestamp(String a, Calendar b)
111: throws SQLException {
112: return inner.getTimestamp(a, b);
113: }
114:
115: public InputStream getAsciiStream(String a) throws SQLException {
116: return inner.getAsciiStream(a);
117: }
118:
119: public InputStream getAsciiStream(int a) throws SQLException {
120: return inner.getAsciiStream(a);
121: }
122:
123: public InputStream getUnicodeStream(String a) throws SQLException {
124: return inner.getUnicodeStream(a);
125: }
126:
127: public InputStream getUnicodeStream(int a) throws SQLException {
128: return inner.getUnicodeStream(a);
129: }
130:
131: public InputStream getBinaryStream(int a) throws SQLException {
132: return inner.getBinaryStream(a);
133: }
134:
135: public InputStream getBinaryStream(String a) throws SQLException {
136: return inner.getBinaryStream(a);
137: }
138:
139: public String getCursorName() throws SQLException {
140: return inner.getCursorName();
141: }
142:
143: public Reader getCharacterStream(int a) throws SQLException {
144: return inner.getCharacterStream(a);
145: }
146:
147: public Reader getCharacterStream(String a) throws SQLException {
148: return inner.getCharacterStream(a);
149: }
150:
151: public boolean isBeforeFirst() throws SQLException {
152: return inner.isBeforeFirst();
153: }
154:
155: public boolean isAfterLast() throws SQLException {
156: return inner.isAfterLast();
157: }
158:
159: public boolean isFirst() throws SQLException {
160: return inner.isFirst();
161: }
162:
163: public boolean isLast() throws SQLException {
164: return inner.isLast();
165: }
166:
167: public void beforeFirst() throws SQLException {
168: inner.beforeFirst();
169: }
170:
171: public void afterLast() throws SQLException {
172: inner.afterLast();
173: }
174:
175: public boolean absolute(int a) throws SQLException {
176: return inner.absolute(a);
177: }
178:
179: public void setFetchDirection(int a) throws SQLException {
180: inner.setFetchDirection(a);
181: }
182:
183: public int getFetchDirection() throws SQLException {
184: return inner.getFetchDirection();
185: }
186:
187: public void setFetchSize(int a) throws SQLException {
188: inner.setFetchSize(a);
189: }
190:
191: public int getFetchSize() throws SQLException {
192: return inner.getFetchSize();
193: }
194:
195: public int getConcurrency() throws SQLException {
196: return inner.getConcurrency();
197: }
198:
199: public boolean rowUpdated() throws SQLException {
200: return inner.rowUpdated();
201: }
202:
203: public boolean rowInserted() throws SQLException {
204: return inner.rowInserted();
205: }
206:
207: public boolean rowDeleted() throws SQLException {
208: return inner.rowDeleted();
209: }
210:
211: public void updateNull(int a) throws SQLException {
212: inner.updateNull(a);
213: }
214:
215: public void updateNull(String a) throws SQLException {
216: inner.updateNull(a);
217: }
218:
219: public void updateBoolean(int a, boolean b) throws SQLException {
220: inner.updateBoolean(a, b);
221: }
222:
223: public void updateBoolean(String a, boolean b) throws SQLException {
224: inner.updateBoolean(a, b);
225: }
226:
227: public void updateByte(int a, byte b) throws SQLException {
228: inner.updateByte(a, b);
229: }
230:
231: public void updateByte(String a, byte b) throws SQLException {
232: inner.updateByte(a, b);
233: }
234:
235: public void updateShort(int a, short b) throws SQLException {
236: inner.updateShort(a, b);
237: }
238:
239: public void updateShort(String a, short b) throws SQLException {
240: inner.updateShort(a, b);
241: }
242:
243: public void updateInt(String a, int b) throws SQLException {
244: inner.updateInt(a, b);
245: }
246:
247: public void updateInt(int a, int b) throws SQLException {
248: inner.updateInt(a, b);
249: }
250:
251: public void updateLong(int a, long b) throws SQLException {
252: inner.updateLong(a, b);
253: }
254:
255: public void updateLong(String a, long b) throws SQLException {
256: inner.updateLong(a, b);
257: }
258:
259: public void updateFloat(String a, float b) throws SQLException {
260: inner.updateFloat(a, b);
261: }
262:
263: public void updateFloat(int a, float b) throws SQLException {
264: inner.updateFloat(a, b);
265: }
266:
267: public void updateDouble(String a, double b) throws SQLException {
268: inner.updateDouble(a, b);
269: }
270:
271: public void updateDouble(int a, double b) throws SQLException {
272: inner.updateDouble(a, b);
273: }
274:
275: public void updateBigDecimal(int a, BigDecimal b)
276: throws SQLException {
277: inner.updateBigDecimal(a, b);
278: }
279:
280: public void updateBigDecimal(String a, BigDecimal b)
281: throws SQLException {
282: inner.updateBigDecimal(a, b);
283: }
284:
285: public void updateString(String a, String b) throws SQLException {
286: inner.updateString(a, b);
287: }
288:
289: public void updateString(int a, String b) throws SQLException {
290: inner.updateString(a, b);
291: }
292:
293: public void updateBytes(int a, byte[] b) throws SQLException {
294: inner.updateBytes(a, b);
295: }
296:
297: public void updateBytes(String a, byte[] b) throws SQLException {
298: inner.updateBytes(a, b);
299: }
300:
301: public void updateDate(String a, Date b) throws SQLException {
302: inner.updateDate(a, b);
303: }
304:
305: public void updateDate(int a, Date b) throws SQLException {
306: inner.updateDate(a, b);
307: }
308:
309: public void updateTimestamp(int a, Timestamp b) throws SQLException {
310: inner.updateTimestamp(a, b);
311: }
312:
313: public void updateTimestamp(String a, Timestamp b)
314: throws SQLException {
315: inner.updateTimestamp(a, b);
316: }
317:
318: public void updateAsciiStream(String a, InputStream b, int c)
319: throws SQLException {
320: inner.updateAsciiStream(a, b, c);
321: }
322:
323: public void updateAsciiStream(int a, InputStream b, int c)
324: throws SQLException {
325: inner.updateAsciiStream(a, b, c);
326: }
327:
328: public void updateBinaryStream(int a, InputStream b, int c)
329: throws SQLException {
330: inner.updateBinaryStream(a, b, c);
331: }
332:
333: public void updateBinaryStream(String a, InputStream b, int c)
334: throws SQLException {
335: inner.updateBinaryStream(a, b, c);
336: }
337:
338: public void updateCharacterStream(int a, Reader b, int c)
339: throws SQLException {
340: inner.updateCharacterStream(a, b, c);
341: }
342:
343: public void updateCharacterStream(String a, Reader b, int c)
344: throws SQLException {
345: inner.updateCharacterStream(a, b, c);
346: }
347:
348: public void updateObject(String a, Object b) throws SQLException {
349: inner.updateObject(a, b);
350: }
351:
352: public void updateObject(int a, Object b) throws SQLException {
353: inner.updateObject(a, b);
354: }
355:
356: public void updateObject(int a, Object b, int c)
357: throws SQLException {
358: inner.updateObject(a, b, c);
359: }
360:
361: public void updateObject(String a, Object b, int c)
362: throws SQLException {
363: inner.updateObject(a, b, c);
364: }
365:
366: public void insertRow() throws SQLException {
367: inner.insertRow();
368: }
369:
370: public void updateRow() throws SQLException {
371: inner.updateRow();
372: }
373:
374: public void deleteRow() throws SQLException {
375: inner.deleteRow();
376: }
377:
378: public void refreshRow() throws SQLException {
379: inner.refreshRow();
380: }
381:
382: public void cancelRowUpdates() throws SQLException {
383: inner.cancelRowUpdates();
384: }
385:
386: public void moveToInsertRow() throws SQLException {
387: inner.moveToInsertRow();
388: }
389:
390: public void moveToCurrentRow() throws SQLException {
391: inner.moveToCurrentRow();
392: }
393:
394: public Statement getStatement() throws SQLException {
395: return inner.getStatement();
396: }
397:
398: public Blob getBlob(String a) throws SQLException {
399: return inner.getBlob(a);
400: }
401:
402: public Blob getBlob(int a) throws SQLException {
403: return inner.getBlob(a);
404: }
405:
406: public Clob getClob(String a) throws SQLException {
407: return inner.getClob(a);
408: }
409:
410: public Clob getClob(int a) throws SQLException {
411: return inner.getClob(a);
412: }
413:
414: public void updateRef(String a, Ref b) throws SQLException {
415: inner.updateRef(a, b);
416: }
417:
418: public void updateRef(int a, Ref b) throws SQLException {
419: inner.updateRef(a, b);
420: }
421:
422: public void updateBlob(String a, Blob b) throws SQLException {
423: inner.updateBlob(a, b);
424: }
425:
426: public void updateBlob(int a, Blob b) throws SQLException {
427: inner.updateBlob(a, b);
428: }
429:
430: public void updateClob(int a, Clob b) throws SQLException {
431: inner.updateClob(a, b);
432: }
433:
434: public void updateClob(String a, Clob b) throws SQLException {
435: inner.updateClob(a, b);
436: }
437:
438: public void updateArray(String a, Array b) throws SQLException {
439: inner.updateArray(a, b);
440: }
441:
442: public void updateArray(int a, Array b) throws SQLException {
443: inner.updateArray(a, b);
444: }
445:
446: public Object getObject(int a) throws SQLException {
447: return inner.getObject(a);
448: }
449:
450: public Object getObject(String a, Map b) throws SQLException {
451: return inner.getObject(a, b);
452: }
453:
454: public Object getObject(String a) throws SQLException {
455: return inner.getObject(a);
456: }
457:
458: public Object getObject(int a, Map b) throws SQLException {
459: return inner.getObject(a, b);
460: }
461:
462: public boolean getBoolean(int a) throws SQLException {
463: return inner.getBoolean(a);
464: }
465:
466: public boolean getBoolean(String a) throws SQLException {
467: return inner.getBoolean(a);
468: }
469:
470: public byte getByte(String a) throws SQLException {
471: return inner.getByte(a);
472: }
473:
474: public byte getByte(int a) throws SQLException {
475: return inner.getByte(a);
476: }
477:
478: public short getShort(String a) throws SQLException {
479: return inner.getShort(a);
480: }
481:
482: public short getShort(int a) throws SQLException {
483: return inner.getShort(a);
484: }
485:
486: public int getInt(String a) throws SQLException {
487: return inner.getInt(a);
488: }
489:
490: public int getInt(int a) throws SQLException {
491: return inner.getInt(a);
492: }
493:
494: public long getLong(int a) throws SQLException {
495: return inner.getLong(a);
496: }
497:
498: public long getLong(String a) throws SQLException {
499: return inner.getLong(a);
500: }
501:
502: public float getFloat(String a) throws SQLException {
503: return inner.getFloat(a);
504: }
505:
506: public float getFloat(int a) throws SQLException {
507: return inner.getFloat(a);
508: }
509:
510: public double getDouble(int a) throws SQLException {
511: return inner.getDouble(a);
512: }
513:
514: public double getDouble(String a) throws SQLException {
515: return inner.getDouble(a);
516: }
517:
518: public byte[] getBytes(String a) throws SQLException {
519: return inner.getBytes(a);
520: }
521:
522: public byte[] getBytes(int a) throws SQLException {
523: return inner.getBytes(a);
524: }
525:
526: public boolean next() throws SQLException {
527: return inner.next();
528: }
529:
530: public URL getURL(int a) throws SQLException {
531: return inner.getURL(a);
532: }
533:
534: public URL getURL(String a) throws SQLException {
535: return inner.getURL(a);
536: }
537:
538: public int getType() throws SQLException {
539: return inner.getType();
540: }
541:
542: public boolean previous() throws SQLException {
543: return inner.previous();
544: }
545:
546: public void close() throws SQLException {
547: inner.close();
548: }
549:
550: public String getString(String a) throws SQLException {
551: return inner.getString(a);
552: }
553:
554: public String getString(int a) throws SQLException {
555: return inner.getString(a);
556: }
557:
558: public Ref getRef(String a) throws SQLException {
559: return inner.getRef(a);
560: }
561:
562: public Ref getRef(int a) throws SQLException {
563: return inner.getRef(a);
564: }
565:
566: public Time getTime(int a, Calendar b) throws SQLException {
567: return inner.getTime(a, b);
568: }
569:
570: public Time getTime(String a) throws SQLException {
571: return inner.getTime(a);
572: }
573:
574: public Time getTime(int a) throws SQLException {
575: return inner.getTime(a);
576: }
577:
578: public Time getTime(String a, Calendar b) throws SQLException {
579: return inner.getTime(a, b);
580: }
581:
582: public Date getDate(String a) throws SQLException {
583: return inner.getDate(a);
584: }
585:
586: public Date getDate(int a) throws SQLException {
587: return inner.getDate(a);
588: }
589:
590: public Date getDate(int a, Calendar b) throws SQLException {
591: return inner.getDate(a, b);
592: }
593:
594: public Date getDate(String a, Calendar b) throws SQLException {
595: return inner.getDate(a, b);
596: }
597:
598: public boolean first() throws SQLException {
599: return inner.first();
600: }
601:
602: public boolean last() throws SQLException {
603: return inner.last();
604: }
605:
606: public Array getArray(String a) throws SQLException {
607: return inner.getArray(a);
608: }
609:
610: public Array getArray(int a) throws SQLException {
611: return inner.getArray(a);
612: }
613:
614: public boolean relative(int a) throws SQLException {
615: return inner.relative(a);
616: }
617:
618: public void updateTime(String a, Time b) throws SQLException {
619: inner.updateTime(a, b);
620: }
621:
622: public void updateTime(int a, Time b) throws SQLException {
623: inner.updateTime(a, b);
624: }
625:
626: public int findColumn(String a) throws SQLException {
627: return inner.findColumn(a);
628: }
629:
630: public int getRow() throws SQLException {
631: return inner.getRow();
632: }
633: }
|