java.lang.Object
org.apache.commons.dbcp.AbandonedTrace
org.apache.commons.dbcp.DelegatingStatement
org.apache.commons.dbcp.DelegatingPreparedStatement
org.apache.commons.dbcp.PoolablePreparedStatement
- All Implemented Interfaces:
- java.sql.PreparedStatement, java.sql.Statement
- public class PoolablePreparedStatement
- extends DelegatingPreparedStatement
- implements java.sql.PreparedStatement
A DelegatingPreparedStatement that cooperates with
PoolingConnection to implement a pool of java.sql.PreparedStatements.
My close() 55 method returns me to my containing pool. (See PoolingConnection.)
- Version:
- $Revision: 1.11 $ $Date: 2004/03/07 10:50:37 $
| Methods inherited from class org.apache.commons.dbcp.DelegatingPreparedStatement |
addBatch, clearParameters, equals, execute, executeQuery, executeUpdate, getMetaData, getParameterMetaData, setArray, setAsciiStream, setBigDecimal, setBinaryStream, setBlob, setBoolean, setByte, setBytes, setCharacterStream, setClob, setDate, setDate, setDelegate, setDouble, setFloat, setInt, setLong, setNull, setNull, setObject, setObject, setObject, setRef, setShort, setString, setTime, setTime, setTimestamp, setTimestamp, setUnicodeStream, setURL |
| Methods inherited from class org.apache.commons.dbcp.DelegatingStatement |
addBatch, cancel, checkOpen, clearBatch, clearWarnings, execute, execute, execute, execute, executeBatch, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, getConnection, getDelegate, getFetchDirection, getFetchSize, getGeneratedKeys, getInnermostDelegate, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, handleException, hashCode, isClosed, setCursorName, setDelegate, setEscapeProcessing, setFetchDirection, setFetchSize, setMaxFieldSize, setMaxRows, setQueryTimeout |
| Methods inherited from interface java.sql.PreparedStatement |
addBatch, clearParameters, execute, executeQuery, executeUpdate, getMetaData, getParameterMetaData, setArray, setAsciiStream, setBigDecimal, setBinaryStream, setBlob, setBoolean, setByte, setBytes, setCharacterStream, setClob, setDate, setDate, setDouble, setFloat, setInt, setLong, setNull, setNull, setObject, setObject, setObject, setRef, setShort, setString, setTime, setTime, setTimestamp, setTimestamp, setUnicodeStream, setURL |
| Methods inherited from interface java.sql.Statement |
addBatch, cancel, clearBatch, clearWarnings, execute, execute, execute, execute, executeBatch, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setMaxFieldSize, setMaxRows, setQueryTimeout |
_pool
protected org.apache.commons.pool.KeyedObjectPool _pool
- The org.apache.commons.pool.KeyedObjectPool from which I was obtained.
_key
protected java.lang.Object _key
- My "key" as used by org.apache.commons.pool.KeyedObjectPool.
PoolablePreparedStatement
public PoolablePreparedStatement(java.sql.PreparedStatement stmt,
java.lang.Object key,
org.apache.commons.pool.KeyedObjectPool pool,
java.sql.Connection conn)
- Constructor
close
public void close()
throws java.sql.SQLException
- Return me to my pool.
- Specified by:
close in interface java.sql.Statement- Overrides:
close in class DelegatingStatement
activate
protected void activate()
throws java.sql.SQLException
- Overrides:
activate in class DelegatingStatement
passivate
protected void passivate()
throws java.sql.SQLException
- Overrides:
passivate in class DelegatingStatement