KickJava   Java API By Example, From Geeks To Geeks.

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


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