com.ibm.db
Class DatabaseConnectionAfterEventMulticaster

java.lang.Object
  |
  +--java.awt.AWTEventMulticaster
        |
        +--com.ibm.db.DatabaseConnectionAfterEventMulticaster

class DatabaseConnectionAfterEventMulticaster
extends java.awt.AWTEventMulticaster
implements DatabaseConnectionAfterListener

DatabaseConnectionAfterEventMulticaster is the event multicaster class to support the DatabaseConnectionAfterListener interface.


Field Summary
private static java.lang.String copyright
           
 
Fields inherited from class java.awt.AWTEventMulticaster
a, b
 
Constructor Summary
protected DatabaseConnectionAfterEventMulticaster(DatabaseConnectionAfterListener a, DatabaseConnectionAfterListener b)
          Constructs a new DatabaseConnectionAfterEventMulticaster to support multicast events.
 
Method Summary
static DatabaseConnectionAfterListener add(DatabaseConnectionAfterListener a, DatabaseConnectionAfterListener b)
          Add new listener to support multicast events.
protected static java.util.EventListener addInternal(java.util.EventListener a, java.util.EventListener b)
          Returns the resulting multicast listener from adding listener-a and listener-b together.
 void committed(DataEvent event)
          Invoked after DatabaseConnection.commit is executed.
 void connected(DataEvent event)
          Invoked after DatabaseConnection.connect is executed.
 void disconnected(DataEvent event)
          Invoked after DatabaseConnection.disconnect is executed.
static DatabaseConnectionAfterListener remove(DatabaseConnectionAfterListener a, DatabaseConnectionAfterListener b)
          Remove listener to support multicast events.
protected  java.util.EventListener remove(java.util.EventListener oldl)
          Removes a listener from this multicaster and returns the resulting multicast listener.
protected static java.util.EventListener removeInternal(java.util.EventListener l, java.util.EventListener oldl)
          Returns the resulting multicast listener after removing the old listener from listener-l.
 void rolledBack(DataEvent event)
          Invoked after DatabaseConnection.rollback is executed.
 
Methods inherited from class java.awt.AWTEventMulticaster
actionPerformed, add, add, add, add, add, add, add, add, add, add, add, add, adjustmentValueChanged, caretPositionChanged, componentAdded, componentHidden, componentMoved, componentRemoved, componentResized, componentShown, focusGained, focusLost, inputMethodTextChanged, itemStateChanged, keyPressed, keyReleased, keyTyped, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, remove, remove, remove, remove, remove, remove, remove, remove, remove, remove, remove, remove, save, saveInternal, textValueChanged, windowActivated, windowClosed, windowClosing, windowDeactivated, windowDeiconified, windowIconified, windowOpened
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

copyright

private static final java.lang.String copyright
Constructor Detail

DatabaseConnectionAfterEventMulticaster

protected DatabaseConnectionAfterEventMulticaster(DatabaseConnectionAfterListener a,
                                                  DatabaseConnectionAfterListener b)
Constructs a new DatabaseConnectionAfterEventMulticaster to support multicast events.
Parameters:
a - DatabaseConnectionAfterListener
b - DatabaseConnectionAfterListener
Method Detail

add

public static DatabaseConnectionAfterListener add(DatabaseConnectionAfterListener a,
                                                  DatabaseConnectionAfterListener b)
Add new listener to support multicast events.
Parameters:
a - DatabaseConnectionAfterListener
b - DatabaseConnectionAfterListener
Returns:
DatabaseConnectionAfterListener

addInternal

protected static java.util.EventListener addInternal(java.util.EventListener a,
                                                     java.util.EventListener b)
Returns the resulting multicast listener from adding listener-a and listener-b together. If listener-a is null, it returns listener-b; If listener-b is null, it returns listener-a If neither are null, then it creates and returns a new AWTEventMulticaster instance which chains a with b.
Parameters:
a - event listener-a
b - event listener-b

committed

public void committed(DataEvent event)
Invoked after DatabaseConnection.commit is executed.
Specified by:
committed in interface DatabaseConnectionAfterListener
Parameters:
event - DataEvent

connected

public void connected(DataEvent event)
Invoked after DatabaseConnection.connect is executed.
Specified by:
connected in interface DatabaseConnectionAfterListener
Parameters:
event - DataEvent

disconnected

public void disconnected(DataEvent event)
Invoked after DatabaseConnection.disconnect is executed.
Specified by:
disconnected in interface DatabaseConnectionAfterListener
Parameters:
event - DataEvent

remove

public static DatabaseConnectionAfterListener remove(DatabaseConnectionAfterListener a,
                                                     DatabaseConnectionAfterListener b)
Remove listener to support multicast events.
Parameters:
a - DatabaseConnectionAfterListener
b - DatabaseConnectionAfterListener
Returns:
DatabaseConnectionAfterListener

remove

protected java.util.EventListener remove(java.util.EventListener oldl)
Removes a listener from this multicaster and returns the resulting multicast listener.
Overrides:
remove in class java.awt.AWTEventMulticaster
Parameters:
oldl - the listener to be removed

removeInternal

protected static java.util.EventListener removeInternal(java.util.EventListener l,
                                                        java.util.EventListener oldl)
Returns the resulting multicast listener after removing the old listener from listener-l. If listener-l equals the old listener OR listener-l is null, returns null. Else if listener-l is an instance of TableModelEventMulticaster, then it removes the old listener from it. Else, returns listener l.
Parameters:
l - the listener being removed from
oldl - the listener being removed

rolledBack

public void rolledBack(DataEvent event)
Invoked after DatabaseConnection.rollback is executed.
Specified by:
rolledBack in interface DatabaseConnectionAfterListener
Parameters:
event - DataEvent