borland.jbcl Packages  borland.jbcl Class Hierarchy  borland.jbcl.dataset 

ConnectionUpdateListener interface

java.util.EventListener
   +----borland.jbcl.dataset.ConnectionUpdateListener

About the ConnectionUpdateListener interface

Methods  

Implemented by ConnectionUpdateAdapter

This class is used for notification before and after closing a database connection or changing the attributes of the JDBC connection.


ConnectionUpdateListener methods

Methods defined in this interface


ConnectionUpdateListener methods

canChangeConnection(borland.jbcl.dataset.ConnectionUpdateEvent)

  public void canChangeConnection(borland.jbcl.dataset.ConnectionUpdateEvent event)

Called to warn listeners prior to the closing of a database connection. A listener may veto this by throwing an exception. If an Exception is thrown inside this method (if, for instance, an asynchronous query is in process), the closing of the connection will not be performed.

Parameters:

event
Called when a ConnectionUpdateEvent.CAN_CLOSE event occurs.

connectionChanged(borland.jbcl.dataset.ConnectionUpdateEvent)

  public void connectionChanged(borland.jbcl.dataset.ConnectionUpdateEvent event)

This is a notification that something has changed in the database connection, for example, the transactionIsolationLevel property of the database was changed.

Parameters:

event
Called when a ConnectionUpdateEvent.CHANGED event occurs.

connectionClosed(borland.jbcl.dataset.ConnectionUpdateEvent)

  public void connectionClosed(borland.jbcl.dataset.ConnectionUpdateEvent event)

This is a notification that the connection was closed. For example, when used for threads created for batch calculations, a listener might choose to stop the background thread.

Parameters:

event
Called when a ConnectionUpdateEvent.CLOSED event occurs.