KickJava   Java API By Example, From Geeks To Geeks.

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


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