Save This Page
Home » commons-dbcp-1.2.2-src » org.apache.commons » dbcp » cpdsadapter » [javadoc | source]
org.apache.commons.dbcp.cpdsadapter
class: ConnectionImpl [javadoc | source]
java.lang.Object
   org.apache.commons.dbcp.cpdsadapter.ConnectionImpl

All Implemented Interfaces:
    Connection

This class is the Connection that will be returned from PooledConnectionImpl.getConnection(). Most methods are wrappers around the jdbc 1.x Connection. A few exceptions include preparedStatement, close and isClosed. In accordance with the jdbc specification this Connection cannot be used after closed() is called. Any further usage will result in an SQLException.
Field Summary
 boolean isClosed    Marks whether is Connection is still usable. 
Constructor:
 ConnectionImpl(PooledConnectionImpl pooledConnection,
    Connection connection) 
    Creates a ConnectionImpl.
    Parameters:
    pooledConnection - The PooledConnection that is calling the ctor.
    connection - The JDBC 1.x Connection to wrap.
Method from org.apache.commons.dbcp.cpdsadapter.ConnectionImpl Summary:
clearWarnings,   close,   commit,   createStatement,   createStatement,   createStatement,   finalize,   getAutoCommit,   getCatalog,   getHoldability,   getMetaData,   getTransactionIsolation,   getTypeMap,   getWarnings,   isClosed,   isReadOnly,   nativeSQL,   prepareCall,   prepareCall,   prepareCall,   prepareStatement,   prepareStatement,   prepareStatement,   prepareStatement,   prepareStatement,   prepareStatement,   releaseSavepoint,   rollback,   rollback,   setAutoCommit,   setCatalog,   setHoldability,   setReadOnly,   setSavepoint,   setSavepoint,   setTransactionIsolation,   setTypeMap
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.commons.dbcp.cpdsadapter.ConnectionImpl Detail:
 public  void clearWarnings() throws SQLException 
 public  void close() throws SQLException 
    Marks the Connection as closed, and notifies the pool that the pooled connection is available. In accordance with the jdbc specification this Connection cannot be used after closed() is called. Any further usage will result in an SQLException.
 public  void commit() throws SQLException 
 public Statement createStatement() throws SQLException 
 public Statement createStatement(int resultSetType,
    int resultSetConcurrency) throws SQLException 
 public Statement createStatement(int resultSetType,
    int resultSetConcurrency,
    int resultSetHoldability) throws SQLException 
 protected  void finalize() throws Throwable 
    The finalizer helps prevent ConnectionPool leakage.
 public boolean getAutoCommit() throws SQLException 
 public String getCatalog() throws SQLException 
 public int getHoldability() throws SQLException 
 public DatabaseMetaData getMetaData() throws SQLException 
 public int getTransactionIsolation() throws SQLException 
 public Map getTypeMap() throws SQLException 
 public SQLWarning getWarnings() throws SQLException 
 public boolean isClosed() 
    Returns true after close() is called, and false prior to that.
 public boolean isReadOnly() throws SQLException 
 public String nativeSQL(String sql) throws SQLException 
 public CallableStatement prepareCall(String sql) throws SQLException 
 public CallableStatement prepareCall(String sql,
    int resultSetType,
    int resultSetConcurrency) throws SQLException 
 public CallableStatement prepareCall(String sql,
    int resultSetType,
    int resultSetConcurrency,
    int resultSetHoldability) throws SQLException 
 public PreparedStatement prepareStatement(String sql) throws SQLException 
 public PreparedStatement prepareStatement(String sql,
    int autoGeneratedKeys) throws SQLException 
 public PreparedStatement prepareStatement(String sql,
    int[] columnIndexes) throws SQLException 
 public PreparedStatement prepareStatement(String sql,
    String[] columnNames) throws SQLException 
 public PreparedStatement prepareStatement(String sql,
    int resultSetType,
    int resultSetConcurrency) throws SQLException 
 public PreparedStatement prepareStatement(String sql,
    int resultSetType,
    int resultSetConcurrency,
    int resultSetHoldability) throws SQLException 
 public  void releaseSavepoint(Savepoint savepoint) throws SQLException 
 public  void rollback() throws SQLException 
 public  void rollback(Savepoint savepoint) throws SQLException 
 public  void setAutoCommit(boolean b) throws SQLException 
 public  void setCatalog(String catalog) throws SQLException 
 public  void setHoldability(int holdability) throws SQLException 
 public  void setReadOnly(boolean readOnly) throws SQLException 
 public Savepoint setSavepoint() throws SQLException 
 public Savepoint setSavepoint(String name) throws SQLException 
 public  void setTransactionIsolation(int level) throws SQLException 
 public  void setTypeMap(Map map) throws SQLException