Where Am I? Class Hierarchy All Classes All Fields and Methods

Class com.ibm.db.DataEvent

java.lang.Object
   |
   +----java.util.EventObject
           |
           +----com.ibm.db.DataEvent

public class DataEvent
extends EventObject

This is the event class to support the Listener interfaces in com.ibm.db package.


Field Index

ACTION_DELETE_ROW
Triggering action was deleting a row without refilling the cache.
ACTION_DELETE_ROW_AND_REFILL
Triggering action was deleting a row and refilling the cache afterwards.
ACTION_NEW_ROW
Triggering action was adding a new row into the result set with newRow.
ACTION_NEXT_PACKET
Triggering action was fetching the next packet of rows into the cache.
ACTION_NOT_APPLICABLE
Triggering action need not be taken into account.

Constructor Index

DataEvent(Object)
Constructs a new DataEvent.
DataEvent(Object, int)
Constructs a new DataEvent with the specified triggering action.

Method Index

getTriggeringAction()
Returns the triggering action of the event.
setTriggeringAction(int)
Sets a triggering action for the event

Fields

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.


Constructors

DataEvent
 public DataEvent(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(Object source,
                  int action) 
Constructs a new DataEvent with the specified triggering action.

Parameters:
source - the object which is the source of the event
action - the action being performed when the event was fired

Methods

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)

Where Am I? Class Hierarchy All Classes All Fields and Methods