com.mchange.v2.sql.filter.SynchronizedFilterConnection Maven / Gradle / Ivy
Go to download
c3p0 is an easy-to-use library for augmenting traditional (DriverManager-based) JDBC drivers with JNDI-bindable DataSources,
including DataSources that implement Connection and Statement Pooling, as described by the jdbc3 spec and jdbc2 std extension.
/*
* Distributed as part of c3p0 v.0.9.1
*
* Copyright (C) 2005 Machinery For Change, Inc.
*
* Author: Steve Waldman
*
* This library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 2.1, as
* published by the Free Software Foundation.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this software; see the file LICENSE. If not, write to the
* Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307, USA.
*/
package com.mchange.v2.sql.filter;
import java.lang.String;
import java.sql.CallableStatement;
import java.sql.Connection;
import java.sql.DatabaseMetaData;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.sql.SQLWarning;
import java.sql.Savepoint;
import java.sql.Statement;
import java.util.Map;
public abstract class SynchronizedFilterConnection implements Connection
{
protected Connection inner;
public SynchronizedFilterConnection(Connection inner)
{ this.inner = inner; }
public SynchronizedFilterConnection()
{}
public synchronized void setInner( Connection inner )
{ this.inner = inner; }
public synchronized Connection getInner()
{ return inner; }
public synchronized Statement createStatement(int a, int b, int c) throws SQLException
{ return inner.createStatement(a, b, c); }
public synchronized Statement createStatement(int a, int b) throws SQLException
{ return inner.createStatement(a, b); }
public synchronized Statement createStatement() throws SQLException
{ return inner.createStatement(); }
public synchronized PreparedStatement prepareStatement(String a, String[] b) throws SQLException
{ return inner.prepareStatement(a, b); }
public synchronized PreparedStatement prepareStatement(String a) throws SQLException
{ return inner.prepareStatement(a); }
public synchronized PreparedStatement prepareStatement(String a, int b, int c) throws SQLException
{ return inner.prepareStatement(a, b, c); }
public synchronized PreparedStatement prepareStatement(String a, int b, int c, int d) throws SQLException
{ return inner.prepareStatement(a, b, c, d); }
public synchronized PreparedStatement prepareStatement(String a, int b) throws SQLException
{ return inner.prepareStatement(a, b); }
public synchronized PreparedStatement prepareStatement(String a, int[] b) throws SQLException
{ return inner.prepareStatement(a, b); }
public synchronized CallableStatement prepareCall(String a, int b, int c, int d) throws SQLException
{ return inner.prepareCall(a, b, c, d); }
public synchronized CallableStatement prepareCall(String a, int b, int c) throws SQLException
{ return inner.prepareCall(a, b, c); }
public synchronized CallableStatement prepareCall(String a) throws SQLException
{ return inner.prepareCall(a); }
public synchronized String nativeSQL(String a) throws SQLException
{ return inner.nativeSQL(a); }
public synchronized void setAutoCommit(boolean a) throws SQLException
{ inner.setAutoCommit(a); }
public synchronized boolean getAutoCommit() throws SQLException
{ return inner.getAutoCommit(); }
public synchronized void commit() throws SQLException
{ inner.commit(); }
public synchronized void rollback(Savepoint a) throws SQLException
{ inner.rollback(a); }
public synchronized void rollback() throws SQLException
{ inner.rollback(); }
public synchronized DatabaseMetaData getMetaData() throws SQLException
{ return inner.getMetaData(); }
public synchronized void setCatalog(String a) throws SQLException
{ inner.setCatalog(a); }
public synchronized String getCatalog() throws SQLException
{ return inner.getCatalog(); }
public synchronized void setTransactionIsolation(int a) throws SQLException
{ inner.setTransactionIsolation(a); }
public synchronized int getTransactionIsolation() throws SQLException
{ return inner.getTransactionIsolation(); }
public synchronized SQLWarning getWarnings() throws SQLException
{ return inner.getWarnings(); }
public synchronized void clearWarnings() throws SQLException
{ inner.clearWarnings(); }
public synchronized Map getTypeMap() throws SQLException
{ return inner.getTypeMap(); }
public synchronized void setTypeMap(Map a) throws SQLException
{ inner.setTypeMap(a); }
public synchronized void setHoldability(int a) throws SQLException
{ inner.setHoldability(a); }
public synchronized int getHoldability() throws SQLException
{ return inner.getHoldability(); }
public synchronized Savepoint setSavepoint() throws SQLException
{ return inner.setSavepoint(); }
public synchronized Savepoint setSavepoint(String a) throws SQLException
{ return inner.setSavepoint(a); }
public synchronized void releaseSavepoint(Savepoint a) throws SQLException
{ inner.releaseSavepoint(a); }
public synchronized void setReadOnly(boolean a) throws SQLException
{ inner.setReadOnly(a); }
public synchronized boolean isReadOnly() throws SQLException
{ return inner.isReadOnly(); }
public synchronized void close() throws SQLException
{ inner.close(); }
public synchronized boolean isClosed() throws SQLException
{ return inner.isClosed(); }
}