Interface ConnectionEventListener

public interface ConnectionEventListener extends java.util.EventListener

You can use a ConnectionEventListener when you want to be notified of events generated by a PooledConnection. ConnectionEventListener is usually implemented by connection pooling services provided in application servers, for example.

Methods

connectionClosed

public void connectionClosed(ConnectionEvent event)

This method is called when a connection obtained from a pool is closed and when it can be returned to the pool.

Parameters:

event:

The source of the event

connectionErrorOccurred

public void connectionErrorOccurred(ConnectionEvent event)

This method is called when an error occurs. A SQLException specified as a constructor parameter is thrown just after calling this method.

Parameters:

event:

The source of the event



JDBC 3. 0. JAVA Database Connectivity
JDBC 3: Java Database Connectivity
ISBN: 0764548751
EAN: 2147483647
Year: 2002
Pages: 148

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net