com.ibm.db
Class StatementResultAfterEventMulticaster

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

class StatementResultAfterEventMulticaster
extends java.awt.AWTEventMulticaster
implements StatementResultAfterListener

This is the event multicaster class to support the StatementResultAfterListener interface.


Field Summary
private static java.lang.String copyright
           
 
Fields inherited from class java.awt.AWTEventMulticaster
a, b
 
Constructor Summary
protected StatementResultAfterEventMulticaster(StatementResultAfterListener a, StatementResultAfterListener b)
          Constructor to support multicast events.
 
Method Summary
static StatementResultAfterListener add(StatementResultAfterListener a, StatementResultAfterListener b)
          Add new listener to support multicast events.
 void addedNewRow(DataEvent event)
          Invoked after StatementResult.newRow has been executed.
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 cacheRowsChanged(DataEvent event)
          Invoked after the rows in the the cahce have changed.
 void closed(DataEvent event)
          Invoked after StatementResult.close has been executed.
 void deletedRow(DataEvent event)
          Invoked after StatementResult.deleteRow has been executed.
protected  java.util.EventListener remove(java.util.EventListener oldl)
          Removes a listener from this multicaster and returns the resulting multicast listener.
static StatementResultAfterListener remove(StatementResultAfterListener a, StatementResultAfterListener b)
          Remove listener to support multicast events.
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 updatedRow(DataEvent event)
          Invoked after StatementResult.updateRow has been 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

StatementResultAfterEventMulticaster

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

add

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

addedNewRow

public void addedNewRow(DataEvent event)
Invoked after StatementResult.newRow has been executed.
Specified by:
addedNewRow in interface StatementResultAfterListener
Parameters:
event - DataEvent

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

cacheRowsChanged

public void cacheRowsChanged(DataEvent event)
Invoked after the rows in the the cahce have changed.
Specified by:
cacheRowsChanged in interface StatementResultAfterListener
Parameters:
event - DataEvent

closed

public void closed(DataEvent event)
Invoked after StatementResult.close has been executed.
Specified by:
closed in interface StatementResultAfterListener
Parameters:
event - DataEvent

deletedRow

public void deletedRow(DataEvent event)
Invoked after StatementResult.deleteRow has been executed.
Specified by:
deletedRow in interface StatementResultAfterListener
Parameters:
event - DataEvent

remove

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

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

updatedRow

public void updatedRow(DataEvent event)
Invoked after StatementResult.updateRow has been executed.
Specified by:
updatedRow in interface StatementResultAfterListener
Parameters:
event - DataEvent