com.ge.research.utils.db.events
Class UpdateEvent

java.lang.Object
  extended byjava.util.EventObject
      extended bycom.ge.research.utils.db.events.DBPollEvent
          extended bycom.ge.research.utils.db.events.UpdateEvent
All Implemented Interfaces:
java.io.Serializable

public class UpdateEvent
extends DBPollEvent

A DBPollEvent for database update events. This event should contain a copy of the newly updated record, and optionally contain a copy of the original record that was updated.

Version:
$Revision: 1.1 $ $Date: 2006/08/11 00:17:36 $
Author:
garbiras
See Also:
Serialized Form
Created on:
Mar 30, 2005

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
UpdateEvent(DBPoller source)
           
UpdateEvent(DBPoller source, ResultSetRow record)
           
UpdateEvent(DBPoller source, ResultSetRow record, ResultSetRow originalRecord)
          Sets up the event object with a record of the event details and a copy of the original updated record.
 
Method Summary
 ResultSetRow getOriginalRecord()
          Returns the original record that was updated
 void setOriginalRecord(ResultSetRow originalRecord)
          Sets the original record that was updated
 
Methods inherited from class com.ge.research.utils.db.events.DBPollEvent
getRecord, setRecord
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UpdateEvent

public UpdateEvent(DBPoller source)

UpdateEvent

public UpdateEvent(DBPoller source,
                   ResultSetRow record)

UpdateEvent

public UpdateEvent(DBPoller source,
                   ResultSetRow record,
                   ResultSetRow originalRecord)
Sets up the event object with a record of the event details and a copy of the original updated record. Calls UpdateEvent(com.ge.research.utils.db.DBPoller, com.ge.research.utils.db.ResultSetRow)

Parameters:
source - the DBPoller that caused/created the event
record - the record of the details of the database update event Normally equivalent to the database row that was updated.
originalRecord - the original database record that was updated
See Also:
setOriginalRecord(com.ge.research.utils.db.ResultSetRow)
Method Detail

getOriginalRecord

public final ResultSetRow getOriginalRecord()
Returns the original record that was updated

Returns:
The original record that was updated.

setOriginalRecord

public final void setOriginalRecord(ResultSetRow originalRecord)
Sets the original record that was updated

Parameters:
originalRecord - the original record that was updated