com.ge.research.utils.db.events
Class UpdateEvent
java.lang.Object
java.util.EventObject
com.ge.research.utils.db.events.DBPollEvent
com.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
| Fields inherited from class java.util.EventObject |
source |
| 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 |
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 eventrecord - 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)
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