org.apache.commons.dbcp
public class PoolablePreparedStatement extends DelegatingPreparedStatement implements PreparedStatement
My {@link #close} method returns me to my containing pool. (See {@link PoolingConnection}.)
Version: $Revision: 1.11 $ $Date: 2004/03/07 10:50:37 $
See Also: PoolingConnection
Constructor Summary | |
---|---|
PoolablePreparedStatement(PreparedStatement stmt, Object key, KeyedObjectPool pool, Connection conn)
Constructor |
Method Summary | |
---|---|
void | close()
Return me to my pool. |
Parameters: stmt my underlying {@link PreparedStatement} key my key" as used by {@link KeyedObjectPool} pool the {@link KeyedObjectPool} from which I was obtained. conn the {@link Connection} from which I was created