FileDocCategorySizeDatePackage
ConnectionEventListener.javaAPI DocAndroid 1.5 API2505Wed May 06 22:41:06 BST 2009javax.sql

ConnectionEventListener

public interface ConnectionEventListener implements EventListener
An interface used to receive events generated by a {@link PooledConnection}.

This interface would typically be implemented by a component which manages a connection pool (a connection pool manager). A connection triggers an event to a {@code ConnectionEventListener} either when the application closes a connection it has been using or when a significant error occurs while the connection is being used.

The connection pool manager can return closed connections to the pool for later reuse. Connections experiencing an error should be discarded.

since
Android 1.0

Fields Summary
Constructors Summary
Methods Summary
public voidconnectionClosed(javax.sql.ConnectionEvent theEvent)
Notifies the {@code ConnectionEventListener} that an application has called the {@code close} method on a pooled connection.

param
theEvent a {@code ConnectionEvent} containing details about the source of the event.
since
Android 1.0

public voidconnectionErrorOccurred(javax.sql.ConnectionEvent theEvent)
Notifies the {@code ConnectionEventListener} that an error has occurred on a {@code PooledConnection}. This notification is triggered before the {@code SQLException}, which is available through the event argument, is thrown.

param
theEvent a {@code ConnectionEvent} containing details about the source of the event and the {@code SQLException} that has occurred.
since
Android 1.0