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