001: /*
002: * Distributed as part of c3p0 v.0.9.1.2
003: *
004: * Copyright (C) 2005 Machinery For Change, Inc.
005: *
006: * Author: Steve Waldman <swaldman@mchange.com>
007: *
008: * This library is free software; you can redistribute it and/or modify
009: * it under the terms of the GNU Lesser General Public License version 2.1, as
010: * published by the Free Software Foundation.
011: *
012: * This software is distributed in the hope that it will be useful,
013: * but WITHOUT ANY WARRANTY; without even the implied warranty of
014: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
015: * GNU Lesser General Public License for more details.
016: *
017: * You should have received a copy of the GNU Lesser General Public License
018: * along with this software; see the file LICENSE. If not, write to the
019: * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
020: * Boston, MA 02111-1307, USA.
021: */
022:
023: package com.mchange.v2.sql.filter;
024:
025: import java.lang.String;
026: import java.sql.CallableStatement;
027: import java.sql.Connection;
028: import java.sql.DatabaseMetaData;
029: import java.sql.PreparedStatement;
030: import java.sql.SQLException;
031: import java.sql.SQLWarning;
032: import java.sql.Savepoint;
033: import java.sql.Statement;
034: import java.util.Map;
035:
036: public abstract class FilterConnection implements Connection {
037: protected Connection inner;
038:
039: public FilterConnection(Connection inner) {
040: this .inner = inner;
041: }
042:
043: public FilterConnection() {
044: }
045:
046: public void setInner(Connection inner) {
047: this .inner = inner;
048: }
049:
050: public Connection getInner() {
051: return inner;
052: }
053:
054: public Statement createStatement(int a, int b, int c)
055: throws SQLException {
056: return inner.createStatement(a, b, c);
057: }
058:
059: public Statement createStatement(int a, int b) throws SQLException {
060: return inner.createStatement(a, b);
061: }
062:
063: public Statement createStatement() throws SQLException {
064: return inner.createStatement();
065: }
066:
067: public PreparedStatement prepareStatement(String a, String[] b)
068: throws SQLException {
069: return inner.prepareStatement(a, b);
070: }
071:
072: public PreparedStatement prepareStatement(String a)
073: throws SQLException {
074: return inner.prepareStatement(a);
075: }
076:
077: public PreparedStatement prepareStatement(String a, int b, int c)
078: throws SQLException {
079: return inner.prepareStatement(a, b, c);
080: }
081:
082: public PreparedStatement prepareStatement(String a, int b, int c,
083: int d) throws SQLException {
084: return inner.prepareStatement(a, b, c, d);
085: }
086:
087: public PreparedStatement prepareStatement(String a, int b)
088: throws SQLException {
089: return inner.prepareStatement(a, b);
090: }
091:
092: public PreparedStatement prepareStatement(String a, int[] b)
093: throws SQLException {
094: return inner.prepareStatement(a, b);
095: }
096:
097: public CallableStatement prepareCall(String a, int b, int c, int d)
098: throws SQLException {
099: return inner.prepareCall(a, b, c, d);
100: }
101:
102: public CallableStatement prepareCall(String a, int b, int c)
103: throws SQLException {
104: return inner.prepareCall(a, b, c);
105: }
106:
107: public CallableStatement prepareCall(String a) throws SQLException {
108: return inner.prepareCall(a);
109: }
110:
111: public String nativeSQL(String a) throws SQLException {
112: return inner.nativeSQL(a);
113: }
114:
115: public void setAutoCommit(boolean a) throws SQLException {
116: inner.setAutoCommit(a);
117: }
118:
119: public boolean getAutoCommit() throws SQLException {
120: return inner.getAutoCommit();
121: }
122:
123: public void commit() throws SQLException {
124: inner.commit();
125: }
126:
127: public void rollback(Savepoint a) throws SQLException {
128: inner.rollback(a);
129: }
130:
131: public void rollback() throws SQLException {
132: inner.rollback();
133: }
134:
135: public DatabaseMetaData getMetaData() throws SQLException {
136: return inner.getMetaData();
137: }
138:
139: public void setCatalog(String a) throws SQLException {
140: inner.setCatalog(a);
141: }
142:
143: public String getCatalog() throws SQLException {
144: return inner.getCatalog();
145: }
146:
147: public void setTransactionIsolation(int a) throws SQLException {
148: inner.setTransactionIsolation(a);
149: }
150:
151: public int getTransactionIsolation() throws SQLException {
152: return inner.getTransactionIsolation();
153: }
154:
155: public SQLWarning getWarnings() throws SQLException {
156: return inner.getWarnings();
157: }
158:
159: public void clearWarnings() throws SQLException {
160: inner.clearWarnings();
161: }
162:
163: public Map getTypeMap() throws SQLException {
164: return inner.getTypeMap();
165: }
166:
167: public void setTypeMap(Map a) throws SQLException {
168: inner.setTypeMap(a);
169: }
170:
171: public void setHoldability(int a) throws SQLException {
172: inner.setHoldability(a);
173: }
174:
175: public int getHoldability() throws SQLException {
176: return inner.getHoldability();
177: }
178:
179: public Savepoint setSavepoint() throws SQLException {
180: return inner.setSavepoint();
181: }
182:
183: public Savepoint setSavepoint(String a) throws SQLException {
184: return inner.setSavepoint(a);
185: }
186:
187: public void releaseSavepoint(Savepoint a) throws SQLException {
188: inner.releaseSavepoint(a);
189: }
190:
191: public void setReadOnly(boolean a) throws SQLException {
192: inner.setReadOnly(a);
193: }
194:
195: public boolean isReadOnly() throws SQLException {
196: return inner.isReadOnly();
197: }
198:
199: public void close() throws SQLException {
200: inner.close();
201: }
202:
203: public boolean isClosed() throws SQLException {
204: return inner.isClosed();
205: }
206: }
|