javax.sql
Interface PooledConnection

All Known Subinterfaces:
XAConnection

public abstract interface PooledConnection

A PooledConnection object is a connection object that provides hooks for connection pool management.


Method Summary
 void addConnectionEventListener(ConnectionEventListener listener)
           Add an event listener.
 void close()
          Close the database connection.
 java.sql.Connection getConnection()
          Create an object handle for a database connection.
 void removeConnectionEventListener(ConnectionEventListener listener)
           Remove an event listener.
 

Method Detail

getConnection


public java.sql.Connection getConnection()

                                  throws java.sql.SQLException

Create an object handle for a database connection.

Returns:
a Connection object
Throws:
java.sql.SQLException - if a database-access error occurs.

close


public void close()

           throws java.sql.SQLException

Close the database connection.

Throws:
java.sql.SQLException - if a database-access error occurs.

addConnectionEventListener


public void addConnectionEventListener(ConnectionEventListener listener)

Add an event listener.


removeConnectionEventListener


public void removeConnectionEventListener(ConnectionEventListener listener)

Remove an event listener.