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.Connection;
035: import java.sql.Date;
036: import java.sql.ParameterMetaData;
037: import java.sql.PreparedStatement;
038: import java.sql.Ref;
039: import java.sql.ResultSet;
040: import java.sql.ResultSetMetaData;
041: import java.sql.SQLException;
042: import java.sql.SQLWarning;
043: import java.sql.Time;
044: import java.sql.Timestamp;
045: import java.util.Calendar;
046:
047: public abstract class SynchronizedFilterPreparedStatement implements
048: PreparedStatement {
049: protected PreparedStatement inner;
050:
051: public SynchronizedFilterPreparedStatement(PreparedStatement inner) {
052: this .inner = inner;
053: }
054:
055: public SynchronizedFilterPreparedStatement() {
056: }
057:
058: public synchronized void setInner(PreparedStatement inner) {
059: this .inner = inner;
060: }
061:
062: public synchronized PreparedStatement getInner() {
063: return inner;
064: }
065:
066: public synchronized ResultSetMetaData getMetaData()
067: throws SQLException {
068: return inner.getMetaData();
069: }
070:
071: public synchronized ResultSet executeQuery() throws SQLException {
072: return inner.executeQuery();
073: }
074:
075: public synchronized int executeUpdate() throws SQLException {
076: return inner.executeUpdate();
077: }
078:
079: public synchronized void addBatch() throws SQLException {
080: inner.addBatch();
081: }
082:
083: public synchronized void setNull(int a, int b, String c)
084: throws SQLException {
085: inner.setNull(a, b, c);
086: }
087:
088: public synchronized void setNull(int a, int b) throws SQLException {
089: inner.setNull(a, b);
090: }
091:
092: public synchronized void setBigDecimal(int a, BigDecimal b)
093: throws SQLException {
094: inner.setBigDecimal(a, b);
095: }
096:
097: public synchronized void setBytes(int a, byte[] b)
098: throws SQLException {
099: inner.setBytes(a, b);
100: }
101:
102: public synchronized void setTimestamp(int a, Timestamp b, Calendar c)
103: throws SQLException {
104: inner.setTimestamp(a, b, c);
105: }
106:
107: public synchronized void setTimestamp(int a, Timestamp b)
108: throws SQLException {
109: inner.setTimestamp(a, b);
110: }
111:
112: public synchronized void setAsciiStream(int a, InputStream b, int c)
113: throws SQLException {
114: inner.setAsciiStream(a, b, c);
115: }
116:
117: public synchronized void setUnicodeStream(int a, InputStream b,
118: int c) throws SQLException {
119: inner.setUnicodeStream(a, b, c);
120: }
121:
122: public synchronized void setBinaryStream(int a, InputStream b, int c)
123: throws SQLException {
124: inner.setBinaryStream(a, b, c);
125: }
126:
127: public synchronized void clearParameters() throws SQLException {
128: inner.clearParameters();
129: }
130:
131: public synchronized void setObject(int a, Object b)
132: throws SQLException {
133: inner.setObject(a, b);
134: }
135:
136: public synchronized void setObject(int a, Object b, int c, int d)
137: throws SQLException {
138: inner.setObject(a, b, c, d);
139: }
140:
141: public synchronized void setObject(int a, Object b, int c)
142: throws SQLException {
143: inner.setObject(a, b, c);
144: }
145:
146: public synchronized void setCharacterStream(int a, Reader b, int c)
147: throws SQLException {
148: inner.setCharacterStream(a, b, c);
149: }
150:
151: public synchronized void setRef(int a, Ref b) throws SQLException {
152: inner.setRef(a, b);
153: }
154:
155: public synchronized void setBlob(int a, Blob b) throws SQLException {
156: inner.setBlob(a, b);
157: }
158:
159: public synchronized void setClob(int a, Clob b) throws SQLException {
160: inner.setClob(a, b);
161: }
162:
163: public synchronized void setArray(int a, Array b)
164: throws SQLException {
165: inner.setArray(a, b);
166: }
167:
168: public synchronized ParameterMetaData getParameterMetaData()
169: throws SQLException {
170: return inner.getParameterMetaData();
171: }
172:
173: public synchronized void setBoolean(int a, boolean b)
174: throws SQLException {
175: inner.setBoolean(a, b);
176: }
177:
178: public synchronized void setByte(int a, byte b) throws SQLException {
179: inner.setByte(a, b);
180: }
181:
182: public synchronized void setShort(int a, short b)
183: throws SQLException {
184: inner.setShort(a, b);
185: }
186:
187: public synchronized void setInt(int a, int b) throws SQLException {
188: inner.setInt(a, b);
189: }
190:
191: public synchronized void setLong(int a, long b) throws SQLException {
192: inner.setLong(a, b);
193: }
194:
195: public synchronized void setFloat(int a, float b)
196: throws SQLException {
197: inner.setFloat(a, b);
198: }
199:
200: public synchronized void setDouble(int a, double b)
201: throws SQLException {
202: inner.setDouble(a, b);
203: }
204:
205: public synchronized void setURL(int a, URL b) throws SQLException {
206: inner.setURL(a, b);
207: }
208:
209: public synchronized void setTime(int a, Time b) throws SQLException {
210: inner.setTime(a, b);
211: }
212:
213: public synchronized void setTime(int a, Time b, Calendar c)
214: throws SQLException {
215: inner.setTime(a, b, c);
216: }
217:
218: public synchronized boolean execute() throws SQLException {
219: return inner.execute();
220: }
221:
222: public synchronized void setString(int a, String b)
223: throws SQLException {
224: inner.setString(a, b);
225: }
226:
227: public synchronized void setDate(int a, Date b, Calendar c)
228: throws SQLException {
229: inner.setDate(a, b, c);
230: }
231:
232: public synchronized void setDate(int a, Date b) throws SQLException {
233: inner.setDate(a, b);
234: }
235:
236: public synchronized SQLWarning getWarnings() throws SQLException {
237: return inner.getWarnings();
238: }
239:
240: public synchronized void clearWarnings() throws SQLException {
241: inner.clearWarnings();
242: }
243:
244: public synchronized void setFetchDirection(int a)
245: throws SQLException {
246: inner.setFetchDirection(a);
247: }
248:
249: public synchronized int getFetchDirection() throws SQLException {
250: return inner.getFetchDirection();
251: }
252:
253: public synchronized void setFetchSize(int a) throws SQLException {
254: inner.setFetchSize(a);
255: }
256:
257: public synchronized int getFetchSize() throws SQLException {
258: return inner.getFetchSize();
259: }
260:
261: public synchronized int getResultSetHoldability()
262: throws SQLException {
263: return inner.getResultSetHoldability();
264: }
265:
266: public synchronized ResultSet executeQuery(String a)
267: throws SQLException {
268: return inner.executeQuery(a);
269: }
270:
271: public synchronized int executeUpdate(String a, int b)
272: throws SQLException {
273: return inner.executeUpdate(a, b);
274: }
275:
276: public synchronized int executeUpdate(String a, String[] b)
277: throws SQLException {
278: return inner.executeUpdate(a, b);
279: }
280:
281: public synchronized int executeUpdate(String a, int[] b)
282: throws SQLException {
283: return inner.executeUpdate(a, b);
284: }
285:
286: public synchronized int executeUpdate(String a) throws SQLException {
287: return inner.executeUpdate(a);
288: }
289:
290: public synchronized int getMaxFieldSize() throws SQLException {
291: return inner.getMaxFieldSize();
292: }
293:
294: public synchronized void setMaxFieldSize(int a) throws SQLException {
295: inner.setMaxFieldSize(a);
296: }
297:
298: public synchronized int getMaxRows() throws SQLException {
299: return inner.getMaxRows();
300: }
301:
302: public synchronized void setMaxRows(int a) throws SQLException {
303: inner.setMaxRows(a);
304: }
305:
306: public synchronized void setEscapeProcessing(boolean a)
307: throws SQLException {
308: inner.setEscapeProcessing(a);
309: }
310:
311: public synchronized int getQueryTimeout() throws SQLException {
312: return inner.getQueryTimeout();
313: }
314:
315: public synchronized void setQueryTimeout(int a) throws SQLException {
316: inner.setQueryTimeout(a);
317: }
318:
319: public synchronized void setCursorName(String a)
320: throws SQLException {
321: inner.setCursorName(a);
322: }
323:
324: public synchronized ResultSet getResultSet() throws SQLException {
325: return inner.getResultSet();
326: }
327:
328: public synchronized int getUpdateCount() throws SQLException {
329: return inner.getUpdateCount();
330: }
331:
332: public synchronized boolean getMoreResults() throws SQLException {
333: return inner.getMoreResults();
334: }
335:
336: public synchronized boolean getMoreResults(int a)
337: throws SQLException {
338: return inner.getMoreResults(a);
339: }
340:
341: public synchronized int getResultSetConcurrency()
342: throws SQLException {
343: return inner.getResultSetConcurrency();
344: }
345:
346: public synchronized int getResultSetType() throws SQLException {
347: return inner.getResultSetType();
348: }
349:
350: public synchronized void addBatch(String a) throws SQLException {
351: inner.addBatch(a);
352: }
353:
354: public synchronized void clearBatch() throws SQLException {
355: inner.clearBatch();
356: }
357:
358: public synchronized int[] executeBatch() throws SQLException {
359: return inner.executeBatch();
360: }
361:
362: public synchronized ResultSet getGeneratedKeys()
363: throws SQLException {
364: return inner.getGeneratedKeys();
365: }
366:
367: public synchronized void close() throws SQLException {
368: inner.close();
369: }
370:
371: public synchronized boolean execute(String a, int b)
372: throws SQLException {
373: return inner.execute(a, b);
374: }
375:
376: public synchronized boolean execute(String a) throws SQLException {
377: return inner.execute(a);
378: }
379:
380: public synchronized boolean execute(String a, int[] b)
381: throws SQLException {
382: return inner.execute(a, b);
383: }
384:
385: public synchronized boolean execute(String a, String[] b)
386: throws SQLException {
387: return inner.execute(a, b);
388: }
389:
390: public synchronized Connection getConnection() throws SQLException {
391: return inner.getConnection();
392: }
393:
394: public synchronized void cancel() throws SQLException {
395: inner.cancel();
396: }
397: }
|