Name

PooledConnection

Synopsis

PooledConnection provides an application-level hook into the JDBC Standard Extension’s connection pooling functionality. Call getConnection() to retrieve a standard java.sql.Connection object for database access from the connection pool. Use close() to return this connection to the pool.

public interface PooledConnection {
// Event Registration Methods (by event name)
   public abstract void addConnectionEventListener(
        javax.sql.ConnectionEventListener listener);  
   public abstract void removeConnectionEventListener(
        javax.sql.ConnectionEventListener listener);  
// Public Instance Methods
   public abstract void close() throws java.sql.SQLException;  
   public abstract java.sql.Connection getConnection(
        ) throws java.sql.SQLException;  
}

Implementations

javax.sql.XAConnection

Passed To

javax.sql.ConnectionEvent.ConnectionEvent()

Returned By

ConnectionPoolDataSource.getPooledConnection()

Get Java Enterprise in a Nutshell, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.