org.eclipse.datatools.connectivity
Class ManagedConnectionAdapter

java.lang.Object
  extended byorg.eclipse.datatools.connectivity.ManagedConnectionAdapter
All Implemented Interfaces:
IManagedConnectionListener

public class ManagedConnectionAdapter
extends java.lang.Object
implements IManagedConnectionListener

Base implementation for IManagedConnectionListener.

Author:
rcernich Created on Jan 23, 2006

Constructor Summary
ManagedConnectionAdapter()
           
 
Method Summary
 void aboutToClose(ConnectEvent event)
          The connection manged by the associated IManagedConnection is about to be closed.
 void closed(ConnectEvent event)
          The connection manged by the associated IManagedConnection has been closed.
 void modified(ConnectEvent event)
          The connection manged by the associated IManagedConnection has been modifed.
 boolean okToClose(ConnectEvent event)
          A client (or the user) has requested the connection managed by the associated IManagedConnection be closed.
 void opened(ConnectEvent event)
          The connection managed by the associated IManagedConnection has been opened.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ManagedConnectionAdapter

public ManagedConnectionAdapter()
Method Detail

opened

public void opened(ConnectEvent event)
Description copied from interface: IManagedConnectionListener
The connection managed by the associated IManagedConnection has been opened.

Specified by:
opened in interface IManagedConnectionListener
Parameters:
event -

modified

public void modified(ConnectEvent event)
Description copied from interface: IManagedConnectionListener
The connection manged by the associated IManagedConnection has been modifed. The context object in the event may specify details as to what on the server has been modified.

Specified by:
modified in interface IManagedConnectionListener
Parameters:
event -

okToClose

public boolean okToClose(ConnectEvent event)
Description copied from interface: IManagedConnectionListener
A client (or the user) has requested the connection managed by the associated IManagedConnection be closed. This callback gives other clients the option of cancelling the operation (e.g. they still require access to the connection).

Specified by:
okToClose in interface IManagedConnectionListener
Parameters:
event -
Returns:
false to prevent the connection from being closed.

aboutToClose

public void aboutToClose(ConnectEvent event)
Description copied from interface: IManagedConnectionListener
The connection manged by the associated IManagedConnection is about to be closed. Clients may use this opportunity to perform clean up operations on the connection prior to it being closed. (Note, this method is called after okToClose() and prior to closed().)

Specified by:
aboutToClose in interface IManagedConnectionListener
Parameters:
event -

closed

public void closed(ConnectEvent event)
Description copied from interface: IManagedConnectionListener
The connection manged by the associated IManagedConnection has been closed.

Specified by:
closed in interface IManagedConnectionListener
Parameters:
event -


Copyright © 2006 Actuate, IBM Corporation, Sybase, Inc. and others. All rights reserved.