com.ibm.db
Class DatabaseConnectionBeforeEventMulticaster

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

class DatabaseConnectionBeforeEventMulticaster
extends java.awt.AWTEventMulticaster
implements DatabaseConnectionBeforeListener

DatabaseConnectionBeforeEventMulticaster is the event multicaster class to support the DatabaseConnectionBeforeListener interface.


Field Summary
private static java.lang.String copyright
           
 
Fields inherited from class java.awt.AWTEventMulticaster
a, b
 
Constructor Summary
protected DatabaseConnectionBeforeEventMulticaster(DatabaseConnectionBeforeListener a, DatabaseConnectionBeforeListener b)
          Constructor to support multicast events.
 
Method Summary
 void aboutToCommit(DataEvent event)
          Invoked before DatabaseConnection.commit is executed.
 void aboutToConnect(DataEvent event)
          Invoked before DatabaseConnection.connect is executed.
 void aboutToDisconnect(DataEvent event)
          Invoked before DatabaseConnection.disconnect is executed.
 void aboutToRollback(DataEvent event)
          Invoked before DatabaseConnection.rollback is executed.
static DatabaseConnectionBeforeListener add(DatabaseConnectionBeforeListener a, DatabaseConnectionBeforeListener 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.
static DatabaseConnectionBeforeListener remove(DatabaseConnectionBeforeListener a, DatabaseConnectionBeforeListener 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.
 
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

DatabaseConnectionBeforeEventMulticaster

protected DatabaseConnectionBeforeEventMulticaster(DatabaseConnectionBeforeListener a,
                                                   DatabaseConnectionBeforeListener b)
Constructor to support multicast events.
Parameters:
a - DatabaseConnectionBeforeListener
b - DatabaseConnectionBeforeListener
Method Detail

aboutToCommit

public void aboutToCommit(DataEvent event)
Invoked before DatabaseConnection.commit is executed.
Specified by:
aboutToCommit in interface DatabaseConnectionBeforeListener
Parameters:
event - DataEvent

aboutToConnect

public void aboutToConnect(DataEvent event)
Invoked before DatabaseConnection.connect is executed.
Specified by:
aboutToConnect in interface DatabaseConnectionBeforeListener
Parameters:
event - DataEvent

aboutToDisconnect

public void aboutToDisconnect(DataEvent event)
Invoked before DatabaseConnection.disconnect is executed.
Specified by:
aboutToDisconnect in interface DatabaseConnectionBeforeListener
Parameters:
event - DataEvent

aboutToRollback

public void aboutToRollback(DataEvent event)
Invoked before DatabaseConnection.rollback is executed.
Specified by:
aboutToRollback in interface DatabaseConnectionBeforeListener
Parameters:
event - DataEvent

add

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

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

remove

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

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