1.60.0

interbase.interclient
Class ConnectionCache

interbase.interclient.ConnectionCache

public class ConnectionCache

The ConnectionCache class implements the javax.sql.ConnectionEventListener interface so that it can be notified when close and error events occur on a PooledConnection that is in use.

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 software vendor. A ConnectionEventListener is notified by a JDBC driver when an application is finished using a connection. This event occurs after the application calls close on its representation of the connection. A ConnectionEventListener is also notified when a Connection error occurs due to the fact that the Connection 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 Connection.

Since:
Extension, proposed for future release, not yet supported
Version:
Std Ext 0.7

Constructor Summary
ConnectionCache()
           
 
Method Summary
 void connectionClosed(javax.sql.ConnectionEvent event)
          Invoked when the application calls close() on its representation of the connection.
 void connectionErrorOccurred(javax.sql.ConnectionEvent event)
          Invoked when a fatal connection error occurs, just before an SQLException is thrown to the application.
 javax.sql.PooledConnection lookup()
           
 

Constructor Detail

ConnectionCache

public ConnectionCache()
Method Detail

lookup

public javax.sql.PooledConnection lookup()
Since:
Extension, proposed for future release, not yet supported

connectionClosed

public void connectionClosed(javax.sql.ConnectionEvent event)
Invoked when the application calls close() on its representation of the connection.
Parameters:
event - an event object describing the source of the event
Since:
Extension, proposed for future release, not yet supported

connectionErrorOccurred

public void connectionErrorOccurred(javax.sql.ConnectionEvent event)
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
Since:
Extension, proposed for future release, not yet supported

1.60.0

Send comments or suggestions to interclient@interbase.com