All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class oracle.jdbc.pool.OracleConnectionEventListener

java.lang.Object
   |
   +----oracle.jdbc.pool.OracleConnectionEventListener

public class OracleConnectionEventListener
extends Object

A ConnectionEventListener is an object that registers to receive events generated by a PooledConnection.

The ConnectionEventListener interface is implemented by a connection pooling component. A connection pooling component will usually be provided by a JDBC driver vendor, or another system software vendor. A ConnectionEventListener is notified by a JDBC driver when an application is finished using its Connection object. This event occurs after the application calls close on its representation of the PooledConnection. A ConnectionEventListener is also notified when a Connection error occurs due to the fact that the PooledConnection is unfit for future use---the server has crashed, for example. The listener is notified, by the JDBC driver, just before the driver throws an SQLException to the application using the PooledConnection.

OracleConnectionEventListener implements ConnectionEventListener


Constructor Index

 o OracleConnectionEventListener()

Default constructor

 o OracleConnectionEventListener(DataSource)

Construct an OracleConnectionEventListener with the DataSource as it's argument.

Method Index

 o connectionClosed(ConnectionEvent)

Invoked when the application calls close() on its representation of the connection.

 o connectionErrorOccurred(ConnectionEvent)

Invoked when a fatal connection error occurs, just before an SQLException is thrown to the application.

 o setDataSource(DataSource)
Set the DataSource corresponding to this listener.

Constructors

 o OracleConnectionEventListener
 public OracleConnectionEventListener()

Default constructor

 o OracleConnectionEventListener
 public OracleConnectionEventListener(DataSource ds)

Construct an OracleConnectionEventListener with the DataSource as it's argument.

Parameters:
DataSource - corresponding to this listener

Methods

 o setDataSource
 public void setDataSource(DataSource ds)
Set the DataSource corresponding to this listener.

Parameters:
DataSource - corresponding to this listener
 o connectionClosed
 public void connectionClosed(ConnectionEvent ce)

Invoked when the application calls close() on its representation of the connection.

Parameters:
event - an event object describing the source of the event
 o connectionErrorOccurred
 public void connectionErrorOccurred(ConnectionEvent ce)

Invoked when a fatal connection error occurs, just before an SQLException is thrown to the application.

Parameters:
event - an event object describing the source of the event

All Packages  Class Hierarchy  This Package  Previous  Next  Index