com.ibm.db
Class DataEvent
java.lang.Object
|
+--java.util.EventObject
|
+--com.ibm.db.DataEvent
- public class DataEvent
- extends java.util.EventObject
This is the event class to support the Listener interfaces in com.ibm.db package.
- See Also:
- Serialized Form
Fields inherited from class java.util.EventObject |
source |
Constructor Summary |
DataEvent(java.lang.Object source)
Constructs a new DataEvent. |
DataEvent(java.lang.Object source,
int action)
Constructs a new DataEvent with the specified triggering action. |
Methods inherited from class java.util.EventObject |
getSource,
toString |
Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
wait,
wait,
wait |
triggeringAction
protected int triggeringAction
ACTION_DELETE_ROW
public static final int ACTION_DELETE_ROW
- Triggering action was deleting a row without refilling the cache.
ACTION_DELETE_ROW_AND_REFILL
public static final int ACTION_DELETE_ROW_AND_REFILL
- Triggering action was deleting a row and refilling the cache afterwards.
ACTION_NEW_ROW
public static final int ACTION_NEW_ROW
- Triggering action was adding a new row into the result set with newRow.
ACTION_NEXT_PACKET
public static final int ACTION_NEXT_PACKET
- Triggering action was fetching the next packet of rows into the cache.
ACTION_NOT_APPLICABLE
public static final int ACTION_NOT_APPLICABLE
- Triggering action need not be taken into account.
copyright
private static final java.lang.String copyright
DataEvent
public DataEvent(java.lang.Object source)
- Constructs a new DataEvent.
The triggering action of the event defaults to ACTION_NOT_APPLICABLE.
- Parameters:
source
- the object which is the source of the event
DataEvent
public DataEvent(java.lang.Object source,
int action)
- Constructs a new DataEvent with the specified triggering action.
- Parameters:
source
- the object which is the source of the eventaction
- the action being performed when the event was fired
getTriggeringAction
public int getTriggeringAction()
- Returns the triggering action of the event.
- Returns:
- the triggering action (ACTION_NOT_APPLICABLE, ACTION_NEW_ROW, ACTION_DELETE_ROW,
ACTION_DELETE_ROW_AND_REFILL, ACTION NEXT_PACKET)
setTriggeringAction
public void setTriggeringAction(int action)
- Sets a triggering action for the event
- Parameters:
action
- the triggering action (ACTION_NOT_APPLICABLE, ACTION_NEW_ROW, ACTION_DELETE_ROW,
ACTION_DELETE_ROW_AND_REFILL, ACTION NEXT_PACKET)