Module org.hsqldb

Class JDBCPooledConnection

java.lang.Object
org.hsqldb.jdbc.pool.JDBCPooledConnection
All Implemented Interfaces:
PooledConnection, JDBCConnectionEventListener
Direct Known Subclasses:
JDBCXAConnection

public class JDBCPooledConnection extends Object implements PooledConnection, JDBCConnectionEventListener
An implementations of PooledConnection for use by connection pooling software.

The class maintains a lifetime connection to the database. The getConnection() method establishes a lease on the lifetime connection and returns a special JDBCConnection (userConnection) that is valid until it is closed.

This class uses a dedicated HyperSQL method to guarantee each lease on the connection starts with the original state of the connection.

The ConnectionEventLister objects that have been registered with this PooledConnection are notified when each lease expires, or an unrecoverable error occurs on the connection to the database.

Since:
JDK 1.2, HSQLDB 2.0
Author:
Fred Toussi (fredt@users dot sourceforge.net)