| java.lang.Object org.apache.commons.dbcp.AbandonedTrace org.apache.commons.dbcp.DelegatingConnection org.apache.commons.dbcp.PoolableConnection
PoolableConnection | public class PoolableConnection extends DelegatingConnection (Code) | | A delegating connection that, rather than closing the underlying
connection, returns itself to an
ObjectPool when
closed.
author: Rodney Waldhoff author: Glenn L. Nielsen author: James House version: $Revision: 479137 $ $Date: 2006-11-25 08:51:48 -0700 (Sat, 25 Nov 2006) $ |
Field Summary | |
protected ObjectPool | _pool The pool to which I should return. |
Method Summary | |
public synchronized void | close() Returns me to my pool. | public void | reallyClose() Actually close my underlying
Connection . |
_pool | protected ObjectPool _pool(Code) | | The pool to which I should return.
|
PoolableConnection | public PoolableConnection(Connection conn, ObjectPool pool)(Code) | | Parameters: conn - my underlying connection Parameters: pool - the pool to which I should return when closed |
PoolableConnection | public PoolableConnection(Connection conn, ObjectPool pool, AbandonedConfig config)(Code) | | Parameters: conn - my underlying connection Parameters: pool - the pool to which I should return when closed Parameters: config - the abandoned configuration settings |
Methods inherited from org.apache.commons.dbcp.DelegatingConnection | protected void activate()(Code)(Java Doc) protected void checkOpen() throws SQLException(Code)(Java Doc) public void clearWarnings() throws SQLException(Code)(Java Doc) public void close() throws SQLException(Code)(Java Doc) public void commit() throws SQLException(Code)(Java Doc) public Statement createStatement() throws SQLException(Code)(Java Doc) public Statement createStatement(int resultSetType, int resultSetConcurrency) throws SQLException(Code)(Java Doc) public Statement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException(Code)(Java Doc) public boolean equals(Object obj)(Code)(Java Doc) public boolean getAutoCommit() throws SQLException(Code)(Java Doc) public String getCatalog() throws SQLException(Code)(Java Doc) public Connection getDelegate()(Code)(Java Doc) public int getHoldability() throws SQLException(Code)(Java Doc) public Connection getInnermostDelegate()(Code)(Java Doc) public DatabaseMetaData getMetaData() throws SQLException(Code)(Java Doc) public int getTransactionIsolation() throws SQLException(Code)(Java Doc) public Map getTypeMap() throws SQLException(Code)(Java Doc) public SQLWarning getWarnings() throws SQLException(Code)(Java Doc) protected void handleException(SQLException e) throws SQLException(Code)(Java Doc) public int hashCode()(Code)(Java Doc) public boolean innermostDelegateEquals(Connection c)(Code)(Java Doc) public boolean isClosed() throws SQLException(Code)(Java Doc) public boolean isReadOnly() throws SQLException(Code)(Java Doc) public String nativeSQL(String sql) throws SQLException(Code)(Java Doc) protected void passivate() throws SQLException(Code)(Java Doc) public CallableStatement prepareCall(String sql) throws SQLException(Code)(Java Doc) public CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency) throws SQLException(Code)(Java Doc) public CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException(Code)(Java Doc) public PreparedStatement prepareStatement(String sql) throws SQLException(Code)(Java Doc) public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency) throws SQLException(Code)(Java Doc) public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException(Code)(Java Doc) public PreparedStatement prepareStatement(String sql, int autoGeneratedKeys) throws SQLException(Code)(Java Doc) public PreparedStatement prepareStatement(String sql, int columnIndexes) throws SQLException(Code)(Java Doc) public PreparedStatement prepareStatement(String sql, String columnNames) throws SQLException(Code)(Java Doc) public void releaseSavepoint(java.sql.Savepoint savepoint) throws SQLException(Code)(Java Doc) public void rollback() throws SQLException(Code)(Java Doc) public void rollback(java.sql.Savepoint savepoint) throws SQLException(Code)(Java Doc) public void setAutoCommit(boolean autoCommit) throws SQLException(Code)(Java Doc) public void setCatalog(String catalog) throws SQLException(Code)(Java Doc) public void setDelegate(Connection c)(Code)(Java Doc) public void setHoldability(int holdability) throws SQLException(Code)(Java Doc) public void setReadOnly(boolean readOnly) throws SQLException(Code)(Java Doc) public java.sql.Savepoint setSavepoint() throws SQLException(Code)(Java Doc) public java.sql.Savepoint setSavepoint(String name) throws SQLException(Code)(Java Doc) public void setTransactionIsolation(int level) throws SQLException(Code)(Java Doc) public void setTypeMap(Map map) throws SQLException(Code)(Java Doc) public String toString()(Code)(Java Doc)
|
|
|