This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


javax.sql
interface ConnectionEventListener

All Superinterfaces:
EventListener

Most common way to construct:

ArrayList listeners = …;
int i = …;

ConnectionEventListener listener = (ConnectionEventListener)listeners.get(i);

Based on 10 examples


public interface ConnectionEventListener
extends EventListener

An object that registers to be notified of events generated by a PooledConnection object.

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 JDBC driver notifies a ConnectionEventListener object when an application is finished using a pooled connection with which the listener has registered. The notification occurs after the application calls the method close on its representation of a PooledConnection object. 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 object.


Method Summary
 void

          Notifies this ConnectionEventListener that the application has called the method close on its representation of a pooled connection.
 void

          Notifies this ConnectionEventListener that a fatal error has occurred and the pooled connection can no longer be used.
 

Method Detail

connectionClosed

public void connectionClosed(ConnectionEvent event)
Notifies this ConnectionEventListener that the application has called the method close on its representation of a pooled connection.

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

connectionErrorOccurred

public void connectionErrorOccurred(ConnectionEvent event)
Notifies this ConnectionEventListener that a fatal error has occurred and the pooled connection can no longer be used. The driver makes this notification just before it throws the application the SQLException contained in the given ConnectionEvent object.

Parameters:
event - an event object describing the source of the event and containing the SQLException that the driver is about to throw


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.