org.apache.commons.dbcp

Class PoolablePreparedStatement

public class PoolablePreparedStatement extends DelegatingPreparedStatement implements PreparedStatement

A {@link DelegatingPreparedStatement} that cooperates with {@link PoolingConnection} to implement a pool of {@link PreparedStatement}s.

My {@link #close} method returns me to my containing pool. (See {@link PoolingConnection}.)

Version: $Revision: 1.11 $ $Date: 2004/03/07 10:50:37 $

Author: Rodney Waldhoff Glenn L. Nielsen James House Dirk Verbeeck

See Also: PoolingConnection

Constructor Summary
PoolablePreparedStatement(PreparedStatement stmt, Object key, KeyedObjectPool pool, Connection conn)
Constructor
Method Summary
voidclose()
Return me to my pool.

Constructor Detail

PoolablePreparedStatement

public PoolablePreparedStatement(PreparedStatement stmt, Object key, KeyedObjectPool pool, Connection conn)
Constructor

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

Method Detail

close

public void close()
Return me to my pool.
Copyright © 2001-2003 Apache Software Foundation. Documenation generated January 22 2008.