FileDocCategorySizeDatePackage
ConnectionWrapper.javaAPI DocExample3715Tue Nov 13 12:54:50 GMT 2001tuning.jdbc

ConnectionWrapper

public class ConnectionWrapper extends Object implements Connection

Fields Summary
protected Connection
realConnection
Constructors Summary
public ConnectionWrapper(Connection connection)

    realConnection = connection;
  
Methods Summary
public voidclearWarnings()

    realConnection.clearWarnings();
  
public voidclose()

    realConnection.close();
  
public voidcommit()

    realConnection.commit();
  
public java.sql.StatementcreateStatement()

    return new StatementWrapper(realConnection.createStatement(), this);
  
public java.sql.StatementcreateStatement(int resultSetType, int resultSetConcurrency)

    return new StatementWrapper(realConnection.createStatement(resultSetType, resultSetConcurrency), this);
  
public booleangetAutoCommit()

    return realConnection.getAutoCommit();
  
public java.lang.StringgetCatalog()

    return realConnection.getCatalog();
  
public java.sql.DatabaseMetaDatagetMetaData()

    return new DatabaseMetaDataWrapper(realConnection.getMetaData(), this);
  
public intgetTransactionIsolation()

    return realConnection.getTransactionIsolation();
  
public java.util.MapgetTypeMap()

    return realConnection.getTypeMap();
  
public java.sql.SQLWarninggetWarnings()

    return realConnection.getWarnings();
  
public booleanisClosed()

    return realConnection.isClosed();
  
public booleanisReadOnly()

    return realConnection.isReadOnly();
  
public java.lang.StringnativeSQL(java.lang.String sql)

    return realConnection.nativeSQL(sql);
  
public java.sql.CallableStatementprepareCall(java.lang.String sql)

    return new CallableStatementWrapper(realConnection.prepareCall(sql), this, sql);
  
public java.sql.CallableStatementprepareCall(java.lang.String sql, int resultSetType, int resultSetConcurrency)

    return new CallableStatementWrapper(realConnection.prepareCall(sql, resultSetType, resultSetConcurrency), this, sql);
  
public java.sql.PreparedStatementprepareStatement(java.lang.String sql)

    return new PreparedStatementWrapper(realConnection.prepareStatement(sql), this, sql);
  
public java.sql.PreparedStatementprepareStatement(java.lang.String sql, int resultSetType, int resultSetConcurrency)

    return new PreparedStatementWrapper(realConnection.prepareStatement(sql, resultSetType, resultSetConcurrency), this, sql);
  
public java.sql.ConnectionrealConnection()

    return realConnection;
  
public voidrollback()

    realConnection.rollback();
  
public voidsetAutoCommit(boolean autoCommit)

    realConnection.setAutoCommit(autoCommit);
  
public voidsetCatalog(java.lang.String catalog)

    realConnection.setCatalog(catalog);
  
public voidsetReadOnly(boolean readOnly)

    realConnection.setReadOnly(readOnly);
  
public voidsetTransactionIsolation(int level)

    realConnection.setTransactionIsolation(level);
  
public voidsetTypeMap(java.util.Map map)

    realConnection.setTypeMap(map);