All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface org.xmlmiddleware.db.CPConnectionEventSource

public interface CPConnectionEventSource
Interface for methods to add and remove connection event listeners.

This interface is roughly parallel to javax.sql.PooledConnection. However, we do not use PooledConnection (nor do we use ConnectionEvent or ConnectionEventListener) because of our connection pool architecture. In particular, PooledConnection is designed to be on a different object than Connection. This is because both have close() methods (which therefore collide), and PooledConnection has methods to get and close the underlying connection, neither of which should be exposed to the application. We implement both CPConnectionEventSource and Connection on the CPConnection object.

Version:
2.0
Author:
Sean Walter, 2001

Method Index

 o addConnectionEventListener(CPConnectionEventListener)
Add an event listener to receive notification of events on this connection.
 o removeConnectionEventListener(CPConnectionEventListener)
Stop notification to an event listener.

Methods

 o addConnectionEventListener
 public abstract void addConnectionEventListener(CPConnectionEventListener listener)
Add an event listener to receive notification of events on this connection.

Parameters:
listener - Object to receive notification.
 o removeConnectionEventListener
 public abstract void removeConnectionEventListener(CPConnectionEventListener listener)
Stop notification to an event listener.

Parameters:
listener - Object to stop receiving notification.

All Packages  Class Hierarchy  This Package  Previous  Next  Index