KickJava   Java API By Example, From Geeks To Geeks.

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


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.CallableStatement JavaDoc;
28 import java.sql.Connection JavaDoc;
29 import java.sql.DatabaseMetaData JavaDoc;
30 import java.sql.PreparedStatement JavaDoc;
31 import java.sql.SQLException JavaDoc;
32 import java.sql.SQLWarning JavaDoc;
33 import java.sql.Savepoint JavaDoc;
34 import java.sql.Statement JavaDoc;
35 import java.util.Map JavaDoc;
36
37 public abstract class SynchronizedFilterConnection implements Connection JavaDoc
38 {
39     protected Connection JavaDoc inner;
40     
41     public SynchronizedFilterConnection(Connection JavaDoc inner)
42     { this.inner = inner; }
43     
44     public SynchronizedFilterConnection()
45     {}
46     
47     public synchronized void setInner( Connection JavaDoc inner )
48     { this.inner = inner; }
49     
50     public synchronized Connection JavaDoc getInner()
51     { return inner; }
52     
53     public synchronized Statement JavaDoc createStatement(int a, int b, int c) throws SQLException JavaDoc
54     { return inner.createStatement(a, b, c); }
55     
56     public synchronized Statement JavaDoc createStatement(int a, int b) throws SQLException JavaDoc
57     { return inner.createStatement(a, b); }
58     
59     public synchronized Statement JavaDoc createStatement() throws SQLException JavaDoc
60     { return inner.createStatement(); }
61     
62     public synchronized PreparedStatement JavaDoc prepareStatement(String JavaDoc a, String JavaDoc[] b) throws SQLException JavaDoc
63     { return inner.prepareStatement(a, b); }
64     
65     public synchronized PreparedStatement JavaDoc prepareStatement(String JavaDoc a) throws SQLException JavaDoc
66     { return inner.prepareStatement(a); }
67     
68     public synchronized PreparedStatement JavaDoc prepareStatement(String JavaDoc a, int b, int c) throws SQLException JavaDoc
69     { return inner.prepareStatement(a, b, c); }
70     
71     public synchronized PreparedStatement JavaDoc prepareStatement(String JavaDoc a, int b, int c, int d) throws SQLException JavaDoc
72     { return inner.prepareStatement(a, b, c, d); }
73     
74     public synchronized PreparedStatement JavaDoc prepareStatement(String JavaDoc a, int b) throws SQLException JavaDoc
75     { return inner.prepareStatement(a, b); }
76     
77     public synchronized PreparedStatement JavaDoc prepareStatement(String JavaDoc a, int[] b) throws SQLException JavaDoc
78     { return inner.prepareStatement(a, b); }
79     
80     public synchronized CallableStatement JavaDoc prepareCall(String JavaDoc a, int b, int c, int d) throws SQLException JavaDoc
81     { return inner.prepareCall(a, b, c, d); }
82     
83     public synchronized CallableStatement JavaDoc prepareCall(String JavaDoc a, int b, int c) throws SQLException JavaDoc
84     { return inner.prepareCall(a, b, c); }
85     
86     public synchronized CallableStatement JavaDoc prepareCall(String JavaDoc a) throws SQLException JavaDoc
87     { return inner.prepareCall(a); }
88     
89     public synchronized String JavaDoc nativeSQL(String JavaDoc a) throws SQLException JavaDoc
90     { return inner.nativeSQL(a); }
91     
92     public synchronized void setAutoCommit(boolean a) throws SQLException JavaDoc
93     { inner.setAutoCommit(a); }
94     
95     public synchronized boolean getAutoCommit() throws SQLException JavaDoc
96     { return inner.getAutoCommit(); }
97     
98     public synchronized void commit() throws SQLException JavaDoc
99     { inner.commit(); }
100     
101     public synchronized void rollback(Savepoint JavaDoc a) throws SQLException JavaDoc
102     { inner.rollback(a); }
103     
104     public synchronized void rollback() throws SQLException JavaDoc
105     { inner.rollback(); }
106     
107     public synchronized DatabaseMetaData JavaDoc getMetaData() throws SQLException JavaDoc
108     { return inner.getMetaData(); }
109     
110     public synchronized void setCatalog(String JavaDoc a) throws SQLException JavaDoc
111     { inner.setCatalog(a); }
112     
113     public synchronized String JavaDoc getCatalog() throws SQLException JavaDoc
114     { return inner.getCatalog(); }
115     
116     public synchronized void setTransactionIsolation(int a) throws SQLException JavaDoc
117     { inner.setTransactionIsolation(a); }
118     
119     public synchronized int getTransactionIsolation() throws SQLException JavaDoc
120     { return inner.getTransactionIsolation(); }
121     
122     public synchronized SQLWarning JavaDoc getWarnings() throws SQLException JavaDoc
123     { return inner.getWarnings(); }
124     
125     public synchronized void clearWarnings() throws SQLException JavaDoc
126     { inner.clearWarnings(); }
127     
128     public synchronized Map JavaDoc getTypeMap() throws SQLException JavaDoc
129     { return inner.getTypeMap(); }
130     
131     public synchronized void setTypeMap(Map JavaDoc a) throws SQLException JavaDoc
132     { inner.setTypeMap(a); }
133     
134     public synchronized void setHoldability(int a) throws SQLException JavaDoc
135     { inner.setHoldability(a); }
136     
137     public synchronized int getHoldability() throws SQLException JavaDoc
138     { return inner.getHoldability(); }
139     
140     public synchronized Savepoint JavaDoc setSavepoint() throws SQLException JavaDoc
141     { return inner.setSavepoint(); }
142     
143     public synchronized Savepoint JavaDoc setSavepoint(String JavaDoc a) throws SQLException JavaDoc
144     { return inner.setSavepoint(a); }
145     
146     public synchronized void releaseSavepoint(Savepoint JavaDoc a) throws SQLException JavaDoc
147     { inner.releaseSavepoint(a); }
148     
149     public synchronized void setReadOnly(boolean a) throws SQLException JavaDoc
150     { inner.setReadOnly(a); }
151     
152     public synchronized boolean isReadOnly() throws SQLException JavaDoc
153     { return inner.isReadOnly(); }
154     
155     public synchronized void close() throws SQLException JavaDoc
156     { inner.close(); }
157     
158     public synchronized boolean isClosed() throws SQLException JavaDoc
159     { return inner.isClosed(); }
160 }
161
Popular Tags