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.lang.String;
026: import java.sql.Connection;
027: import java.sql.ResultSet;
028: import java.sql.SQLException;
029: import java.sql.SQLWarning;
030: import java.sql.Statement;
031:
032: public abstract class FilterStatement implements Statement {
033: protected Statement inner;
034:
035: public FilterStatement(Statement inner) {
036: this .inner = inner;
037: }
038:
039: public FilterStatement() {
040: }
041:
042: public void setInner(Statement inner) {
043: this .inner = inner;
044: }
045:
046: public Statement getInner() {
047: return inner;
048: }
049:
050: public SQLWarning getWarnings() throws SQLException {
051: return inner.getWarnings();
052: }
053:
054: public void clearWarnings() throws SQLException {
055: inner.clearWarnings();
056: }
057:
058: public void setFetchDirection(int a) throws SQLException {
059: inner.setFetchDirection(a);
060: }
061:
062: public int getFetchDirection() throws SQLException {
063: return inner.getFetchDirection();
064: }
065:
066: public void setFetchSize(int a) throws SQLException {
067: inner.setFetchSize(a);
068: }
069:
070: public int getFetchSize() throws SQLException {
071: return inner.getFetchSize();
072: }
073:
074: public int getResultSetHoldability() throws SQLException {
075: return inner.getResultSetHoldability();
076: }
077:
078: public ResultSet executeQuery(String a) throws SQLException {
079: return inner.executeQuery(a);
080: }
081:
082: public int executeUpdate(String a, int b) throws SQLException {
083: return inner.executeUpdate(a, b);
084: }
085:
086: public int executeUpdate(String a, String[] b) throws SQLException {
087: return inner.executeUpdate(a, b);
088: }
089:
090: public int executeUpdate(String a, int[] b) throws SQLException {
091: return inner.executeUpdate(a, b);
092: }
093:
094: public int executeUpdate(String a) throws SQLException {
095: return inner.executeUpdate(a);
096: }
097:
098: public int getMaxFieldSize() throws SQLException {
099: return inner.getMaxFieldSize();
100: }
101:
102: public void setMaxFieldSize(int a) throws SQLException {
103: inner.setMaxFieldSize(a);
104: }
105:
106: public int getMaxRows() throws SQLException {
107: return inner.getMaxRows();
108: }
109:
110: public void setMaxRows(int a) throws SQLException {
111: inner.setMaxRows(a);
112: }
113:
114: public void setEscapeProcessing(boolean a) throws SQLException {
115: inner.setEscapeProcessing(a);
116: }
117:
118: public int getQueryTimeout() throws SQLException {
119: return inner.getQueryTimeout();
120: }
121:
122: public void setQueryTimeout(int a) throws SQLException {
123: inner.setQueryTimeout(a);
124: }
125:
126: public void setCursorName(String a) throws SQLException {
127: inner.setCursorName(a);
128: }
129:
130: public ResultSet getResultSet() throws SQLException {
131: return inner.getResultSet();
132: }
133:
134: public int getUpdateCount() throws SQLException {
135: return inner.getUpdateCount();
136: }
137:
138: public boolean getMoreResults() throws SQLException {
139: return inner.getMoreResults();
140: }
141:
142: public boolean getMoreResults(int a) throws SQLException {
143: return inner.getMoreResults(a);
144: }
145:
146: public int getResultSetConcurrency() throws SQLException {
147: return inner.getResultSetConcurrency();
148: }
149:
150: public int getResultSetType() throws SQLException {
151: return inner.getResultSetType();
152: }
153:
154: public void addBatch(String a) throws SQLException {
155: inner.addBatch(a);
156: }
157:
158: public void clearBatch() throws SQLException {
159: inner.clearBatch();
160: }
161:
162: public int[] executeBatch() throws SQLException {
163: return inner.executeBatch();
164: }
165:
166: public ResultSet getGeneratedKeys() throws SQLException {
167: return inner.getGeneratedKeys();
168: }
169:
170: public void close() throws SQLException {
171: inner.close();
172: }
173:
174: public boolean execute(String a, int b) throws SQLException {
175: return inner.execute(a, b);
176: }
177:
178: public boolean execute(String a) throws SQLException {
179: return inner.execute(a);
180: }
181:
182: public boolean execute(String a, int[] b) throws SQLException {
183: return inner.execute(a, b);
184: }
185:
186: public boolean execute(String a, String[] b) throws SQLException {
187: return inner.execute(a, b);
188: }
189:
190: public Connection getConnection() throws SQLException {
191: return inner.getConnection();
192: }
193:
194: public void cancel() throws SQLException {
195: inner.cancel();
196: }
197: }
|