org.apache.commons.dbcp

Class PoolablePreparedStatement

public class PoolablePreparedStatement extends DelegatingPreparedStatement implements PreparedStatement

A DelegatingPreparedStatement that cooperates with PoolingConnection to implement a pool of PreparedStatements.

My PoolablePreparedStatement method returns me to my containing pool. (See PoolingConnection.)

Version: $Revision: 479137 $ $Date: 2006-11-25 08:51:48 -0700 (Sat, 25 Nov 2006) $

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 PreparedStatement key my key" as used by KeyedObjectPool pool the KeyedObjectPool from which I was obtained. conn the Connection from which I was created

Method Detail

close

public void close()
Return me to my pool.
Copyright © 2001-2004 Apache Software Foundation. Documenation generated December 10 2007.