KickJava   Java API By Example, From Geeks To Geeks.

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


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.Connection JavaDoc;
36 import java.sql.Date JavaDoc;
37 import java.sql.ParameterMetaData JavaDoc;
38 import java.sql.PreparedStatement JavaDoc;
39 import java.sql.Ref JavaDoc;
40 import java.sql.ResultSet JavaDoc;
41 import java.sql.ResultSetMetaData JavaDoc;
42 import java.sql.SQLException JavaDoc;
43 import java.sql.SQLWarning JavaDoc;
44 import java.sql.Time JavaDoc;
45 import java.sql.Timestamp JavaDoc;
46 import java.util.Calendar JavaDoc;
47
48 public abstract class SynchronizedFilterPreparedStatement implements PreparedStatement JavaDoc
49 {
50     protected PreparedStatement JavaDoc inner;
51     
52     public SynchronizedFilterPreparedStatement(PreparedStatement JavaDoc inner)
53     { this.inner = inner; }
54     
55     public SynchronizedFilterPreparedStatement()
56     {}
57     
58     public synchronized void setInner( PreparedStatement JavaDoc inner )
59     { this.inner = inner; }
60     
61     public synchronized PreparedStatement JavaDoc getInner()
62     { return inner; }
63     
64     public synchronized ResultSetMetaData JavaDoc getMetaData() throws SQLException JavaDoc
65     { return inner.getMetaData(); }
66     
67     public synchronized ResultSet JavaDoc executeQuery() throws SQLException JavaDoc
68     { return inner.executeQuery(); }
69     
70     public synchronized int executeUpdate() throws SQLException JavaDoc
71     { return inner.executeUpdate(); }
72     
73     public synchronized void addBatch() throws SQLException JavaDoc
74     { inner.addBatch(); }
75     
76     public synchronized void setNull(int a, int b, String JavaDoc c) throws SQLException JavaDoc
77     { inner.setNull(a, b, c); }
78     
79     public synchronized void setNull(int a, int b) throws SQLException JavaDoc
80     { inner.setNull(a, b); }
81     
82     public synchronized void setBigDecimal(int a, BigDecimal JavaDoc b) throws SQLException JavaDoc
83     { inner.setBigDecimal(a, b); }
84     
85     public synchronized void setBytes(int a, byte[] b) throws SQLException JavaDoc
86     { inner.setBytes(a, b); }
87     
88     public synchronized void setTimestamp(int a, Timestamp JavaDoc b, Calendar JavaDoc c) throws SQLException JavaDoc
89     { inner.setTimestamp(a, b, c); }
90     
91     public synchronized void setTimestamp(int a, Timestamp JavaDoc b) throws SQLException JavaDoc
92     { inner.setTimestamp(a, b); }
93     
94     public synchronized void setAsciiStream(int a, InputStream JavaDoc b, int c) throws SQLException JavaDoc
95     { inner.setAsciiStream(a, b, c); }
96     
97     public synchronized void setUnicodeStream(int a, InputStream JavaDoc b, int c) throws SQLException JavaDoc
98     { inner.setUnicodeStream(a, b, c); }
99     
100     public synchronized void setBinaryStream(int a, InputStream JavaDoc b, int c) throws SQLException JavaDoc
101     { inner.setBinaryStream(a, b, c); }
102     
103     public synchronized void clearParameters() throws SQLException JavaDoc
104     { inner.clearParameters(); }
105     
106     public synchronized void setObject(int a, Object JavaDoc b) throws SQLException JavaDoc
107     { inner.setObject(a, b); }
108     
109     public synchronized void setObject(int a, Object JavaDoc b, int c, int d) throws SQLException JavaDoc
110     { inner.setObject(a, b, c, d); }
111     
112     public synchronized void setObject(int a, Object JavaDoc b, int c) throws SQLException JavaDoc
113     { inner.setObject(a, b, c); }
114     
115     public synchronized void setCharacterStream(int a, Reader JavaDoc b, int c) throws SQLException JavaDoc
116     { inner.setCharacterStream(a, b, c); }
117     
118     public synchronized void setRef(int a, Ref JavaDoc b) throws SQLException JavaDoc
119     { inner.setRef(a, b); }
120     
121     public synchronized void setBlob(int a, Blob JavaDoc b) throws SQLException JavaDoc
122     { inner.setBlob(a, b); }
123     
124     public synchronized void setClob(int a, Clob JavaDoc b) throws SQLException JavaDoc
125     { inner.setClob(a, b); }
126     
127     public synchronized void setArray(int a, Array JavaDoc b) throws SQLException JavaDoc
128     { inner.setArray(a, b); }
129     
130     public synchronized ParameterMetaData JavaDoc getParameterMetaData() throws SQLException JavaDoc
131     { return inner.getParameterMetaData(); }
132     
133     public synchronized void setBoolean(int a, boolean b) throws SQLException JavaDoc
134     { inner.setBoolean(a, b); }
135     
136     public synchronized void setByte(int a, byte b) throws SQLException JavaDoc
137     { inner.setByte(a, b); }
138     
139     public synchronized void setShort(int a, short b) throws SQLException JavaDoc
140     { inner.setShort(a, b); }
141     
142     public synchronized void setInt(int a, int b) throws SQLException JavaDoc
143     { inner.setInt(a, b); }
144     
145     public synchronized void setLong(int a, long b) throws SQLException JavaDoc
146     { inner.setLong(a, b); }
147     
148     public synchronized void setFloat(int a, float b) throws SQLException JavaDoc
149     { inner.setFloat(a, b); }
150     
151     public synchronized void setDouble(int a, double b) throws SQLException JavaDoc
152     { inner.setDouble(a, b); }
153     
154     public synchronized void setURL(int a, URL JavaDoc b) throws SQLException JavaDoc
155     { inner.setURL(a, b); }
156     
157     public synchronized void setTime(int a, Time JavaDoc b) throws SQLException JavaDoc
158     { inner.setTime(a, b); }
159     
160     public synchronized void setTime(int a, Time JavaDoc b, Calendar JavaDoc c) throws SQLException JavaDoc
161     { inner.setTime(a, b, c); }
162     
163     public synchronized boolean execute() throws SQLException JavaDoc
164     { return inner.execute(); }
165     
166     public synchronized void setString(int a, String JavaDoc b) throws SQLException JavaDoc
167     { inner.setString(a, b); }
168     
169     public synchronized void setDate(int a, Date JavaDoc b, Calendar JavaDoc c) throws SQLException JavaDoc
170     { inner.setDate(a, b, c); }
171     
172     public synchronized void setDate(int a, Date JavaDoc b) throws SQLException JavaDoc
173     { inner.setDate(a, b); }
174     
175     public synchronized SQLWarning JavaDoc getWarnings() throws SQLException JavaDoc
176     { return inner.getWarnings(); }
177     
178     public synchronized void clearWarnings() throws SQLException JavaDoc
179     { inner.clearWarnings(); }
180     
181     public synchronized void setFetchDirection(int a) throws SQLException JavaDoc
182     { inner.setFetchDirection(a); }
183     
184     public synchronized int getFetchDirection() throws SQLException JavaDoc
185     { return inner.getFetchDirection(); }
186     
187     public synchronized void setFetchSize(int a) throws SQLException JavaDoc
188     { inner.setFetchSize(a); }
189     
190     public synchronized int getFetchSize() throws SQLException JavaDoc
191     { return inner.getFetchSize(); }
192     
193     public synchronized int getResultSetHoldability() throws SQLException JavaDoc
194     { return inner.getResultSetHoldability(); }
195     
196     public synchronized ResultSet JavaDoc executeQuery(String JavaDoc a) throws SQLException JavaDoc
197     { return inner.executeQuery(a); }
198     
199     public synchronized int executeUpdate(String JavaDoc a, int b) throws SQLException JavaDoc
200     { return inner.executeUpdate(a, b); }
201     
202     public synchronized int executeUpdate(String JavaDoc a, String JavaDoc[] b) throws SQLException JavaDoc
203     { return inner.executeUpdate(a, b); }
204     
205     public synchronized int executeUpdate(String JavaDoc a, int[] b) throws SQLException JavaDoc
206     { return inner.executeUpdate(a, b); }
207     
208     public synchronized int executeUpdate(String JavaDoc a) throws SQLException JavaDoc
209     { return inner.executeUpdate(a); }
210     
211     public synchronized int getMaxFieldSize() throws SQLException JavaDoc
212     { return inner.getMaxFieldSize(); }
213     
214     public synchronized void setMaxFieldSize(int a) throws SQLException JavaDoc
215     { inner.setMaxFieldSize(a); }
216     
217     public synchronized int getMaxRows() throws SQLException JavaDoc
218     { return inner.getMaxRows(); }
219     
220     public synchronized void setMaxRows(int a) throws SQLException JavaDoc
221     { inner.setMaxRows(a); }
222     
223     public synchronized void setEscapeProcessing(boolean a) throws SQLException JavaDoc
224     { inner.setEscapeProcessing(a); }
225     
226     public synchronized int getQueryTimeout() throws SQLException JavaDoc
227     { return inner.getQueryTimeout(); }
228     
229     public synchronized void setQueryTimeout(int a) throws SQLException JavaDoc
230     { inner.setQueryTimeout(a); }
231     
232     public synchronized void setCursorName(String JavaDoc a) throws SQLException JavaDoc
233     { inner.setCursorName(a); }
234     
235     public synchronized ResultSet JavaDoc getResultSet() throws SQLException JavaDoc
236     { return inner.getResultSet(); }
237     
238     public synchronized int getUpdateCount() throws SQLException JavaDoc
239     { return inner.getUpdateCount(); }
240     
241     public synchronized boolean getMoreResults() throws SQLException JavaDoc
242     { return inner.getMoreResults(); }
243     
244     public synchronized boolean getMoreResults(int a) throws SQLException JavaDoc
245     { return inner.getMoreResults(a); }
246     
247     public synchronized int getResultSetConcurrency() throws SQLException JavaDoc
248     { return inner.getResultSetConcurrency(); }
249     
250     public synchronized int getResultSetType() throws SQLException JavaDoc
251     { return inner.getResultSetType(); }
252     
253     public synchronized void addBatch(String JavaDoc a) throws SQLException JavaDoc
254     { inner.addBatch(a); }
255     
256     public synchronized void clearBatch() throws SQLException JavaDoc
257     { inner.clearBatch(); }
258     
259     public synchronized int[] executeBatch() throws SQLException JavaDoc
260     { return inner.executeBatch(); }
261     
262     public synchronized ResultSet JavaDoc getGeneratedKeys() throws SQLException JavaDoc
263     { return inner.getGeneratedKeys(); }
264     
265     public synchronized void close() throws SQLException JavaDoc
266     { inner.close(); }
267     
268     public synchronized boolean execute(String JavaDoc a, int b) throws SQLException JavaDoc
269     { return inner.execute(a, b); }
270     
271     public synchronized boolean execute(String JavaDoc a) throws SQLException JavaDoc
272     { return inner.execute(a); }
273     
274     public synchronized boolean execute(String JavaDoc a, int[] b) throws SQLException JavaDoc
275     { return inner.execute(a, b); }
276     
277     public synchronized boolean execute(String JavaDoc a, String JavaDoc[] b) throws SQLException JavaDoc
278     { return inner.execute(a, b); }
279     
280     public synchronized Connection JavaDoc getConnection() throws SQLException JavaDoc
281     { return inner.getConnection(); }
282     
283     public synchronized void cancel() throws SQLException JavaDoc
284     { inner.cancel(); }
285 }
286
Popular Tags