org.apache.commons.dbcp

Class PoolableConnection

public class PoolableConnection extends DelegatingConnection

A delegating connection that, rather than closing the underlying connection, returns itself to an ObjectPool when closed.

Version: $Revision: 1.14 $ $Date: 2004/05/01 12:50:12 $

Author: Rodney Waldhoff Glenn L. Nielsen James House

Constructor Summary
PoolableConnection(Connection conn, ObjectPool pool)
PoolableConnection(Connection conn, ObjectPool pool, AbandonedConfig config)
Method Summary
voidclose()
Returns me to my pool.
voidreallyClose()
Actually close my underlying Connection.

Constructor Detail

PoolableConnection

public PoolableConnection(Connection conn, ObjectPool pool)

Parameters: conn my underlying connection pool the pool to which I should return when closed

PoolableConnection

public PoolableConnection(Connection conn, ObjectPool pool, AbandonedConfig config)

Deprecated: AbandonedConfig is now deprecated.

Parameters: conn my underlying connection pool the pool to which I should return when closed config the abandoned configuration settings

Method Detail

close

public void close()
Returns me to my pool.

reallyClose

public void reallyClose()
Actually close my underlying Connection.
Copyright © 2001-2003 Apache Software Foundation. Documenation generated February 19 2008.