KickJava   Java API By Example, From Geeks To Geeks.

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


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.lang.String JavaDoc;
27 import java.sql.Connection JavaDoc;
28 import java.sql.ResultSet JavaDoc;
29 import java.sql.SQLException JavaDoc;
30 import java.sql.SQLWarning JavaDoc;
31 import java.sql.Statement JavaDoc;
32
33 public abstract class FilterStatement implements Statement JavaDoc
34 {
35     protected Statement JavaDoc inner;
36     
37     public FilterStatement(Statement JavaDoc inner)
38     { this.inner = inner; }
39     
40     public FilterStatement()
41     {}
42     
43     public void setInner( Statement JavaDoc inner )
44     { this.inner = inner; }
45     
46     public Statement JavaDoc getInner()
47     { return inner; }
48     
49     public SQLWarning JavaDoc getWarnings() throws SQLException JavaDoc
50     { return inner.getWarnings(); }
51     
52     public void clearWarnings() throws SQLException JavaDoc
53     { inner.clearWarnings(); }
54     
55     public void setFetchDirection(int a) throws SQLException JavaDoc
56     { inner.setFetchDirection(a); }
57     
58     public int getFetchDirection() throws SQLException JavaDoc
59     { return inner.getFetchDirection(); }
60     
61     public void setFetchSize(int a) throws SQLException JavaDoc
62     { inner.setFetchSize(a); }
63     
64     public int getFetchSize() throws SQLException JavaDoc
65     { return inner.getFetchSize(); }
66     
67     public int getResultSetHoldability() throws SQLException JavaDoc
68     { return inner.getResultSetHoldability(); }
69     
70     public ResultSet JavaDoc executeQuery(String JavaDoc a) throws SQLException JavaDoc
71     { return inner.executeQuery(a); }
72     
73     public int executeUpdate(String JavaDoc a, int b) throws SQLException JavaDoc
74     { return inner.executeUpdate(a, b); }
75     
76     public int executeUpdate(String JavaDoc a, String JavaDoc[] b) throws SQLException JavaDoc
77     { return inner.executeUpdate(a, b); }
78     
79     public int executeUpdate(String JavaDoc a, int[] b) throws SQLException JavaDoc
80     { return inner.executeUpdate(a, b); }
81     
82     public int executeUpdate(String JavaDoc a) throws SQLException JavaDoc
83     { return inner.executeUpdate(a); }
84     
85     public int getMaxFieldSize() throws SQLException JavaDoc
86     { return inner.getMaxFieldSize(); }
87     
88     public void setMaxFieldSize(int a) throws SQLException JavaDoc
89     { inner.setMaxFieldSize(a); }
90     
91     public int getMaxRows() throws SQLException JavaDoc
92     { return inner.getMaxRows(); }
93     
94     public void setMaxRows(int a) throws SQLException JavaDoc
95     { inner.setMaxRows(a); }
96     
97     public void setEscapeProcessing(boolean a) throws SQLException JavaDoc
98     { inner.setEscapeProcessing(a); }
99     
100     public int getQueryTimeout() throws SQLException JavaDoc
101     { return inner.getQueryTimeout(); }
102     
103     public void setQueryTimeout(int a) throws SQLException JavaDoc
104     { inner.setQueryTimeout(a); }
105     
106     public void setCursorName(String JavaDoc a) throws SQLException JavaDoc
107     { inner.setCursorName(a); }
108     
109     public ResultSet JavaDoc getResultSet() throws SQLException JavaDoc
110     { return inner.getResultSet(); }
111     
112     public int getUpdateCount() throws SQLException JavaDoc
113     { return inner.getUpdateCount(); }
114     
115     public boolean getMoreResults() throws SQLException JavaDoc
116     { return inner.getMoreResults(); }
117     
118     public boolean getMoreResults(int a) throws SQLException JavaDoc
119     { return inner.getMoreResults(a); }
120     
121     public int getResultSetConcurrency() throws SQLException JavaDoc
122     { return inner.getResultSetConcurrency(); }
123     
124     public int getResultSetType() throws SQLException JavaDoc
125     { return inner.getResultSetType(); }
126     
127     public void addBatch(String JavaDoc a) throws SQLException JavaDoc
128     { inner.addBatch(a); }
129     
130     public void clearBatch() throws SQLException JavaDoc
131     { inner.clearBatch(); }
132     
133     public int[] executeBatch() throws SQLException JavaDoc
134     { return inner.executeBatch(); }
135     
136     public ResultSet JavaDoc getGeneratedKeys() throws SQLException JavaDoc
137     { return inner.getGeneratedKeys(); }
138     
139     public void close() throws SQLException JavaDoc
140     { inner.close(); }
141     
142     public boolean execute(String JavaDoc a, int b) throws SQLException JavaDoc
143     { return inner.execute(a, b); }
144     
145     public boolean execute(String JavaDoc a) throws SQLException JavaDoc
146     { return inner.execute(a); }
147     
148     public boolean execute(String JavaDoc a, int[] b) throws SQLException JavaDoc
149     { return inner.execute(a, b); }
150     
151     public boolean execute(String JavaDoc a, String JavaDoc[] b) throws SQLException JavaDoc
152     { return inner.execute(a, b); }
153     
154     public Connection JavaDoc getConnection() throws SQLException JavaDoc
155     { return inner.getConnection(); }
156     
157     public void cancel() throws SQLException JavaDoc
158     { inner.cancel(); }
159 }
160
Popular Tags