Class DelegatingConnection

java.lang.Object
org.apache.commons.dbcp.AbandonedTrace
org.apache.commons.dbcp.DelegatingConnection
All Implemented Interfaces:
AutoCloseable, Connection, Wrapper
Direct Known Subclasses:
ManagedConnection, PoolableConnection, PoolingConnection

public class DelegatingConnection extends AbandonedTrace implements Connection
A base delegating implementation of Connection.

All of the methods from the Connection interface simply check to see that the Connection is active, and call the corresponding method on the "delegate" provided in my constructor.

Extends AbandonedTrace to implement Connection tracking and logging of code which created the Connection. Tracking the Connection ensures that the AbandonedObjectPool can close this connection and recycle it if its pool of connections is nearing exhaustion and this connection's last usage is older than the removeAbandonedTimeout.

Version:
$Revision: 896719 $ $Date: 2010-01-06 18:42:22 -0500 (Wed, 06 Jan 2010) $
Author:
Rodney Waldhoff, Glenn L. Nielsen, James House, Dirk Verbeeck