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

java.lang.Object
  extended byjava.util.EventObject
      extended bycom.ge.research.utils.db.events.DBPollEvent
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
DeleteEvent, InsertEvent, UpdateEvent

public class DBPollEvent
extends java.util.EventObject

An event object that resulted from a database polling operation. Contains a ResultSetRow record of information about the database event.

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
DBPollEvent(DBPoller source)
          Default constructor.
DBPollEvent(DBPoller source, ResultSetRow record)
          Sets up the event object with a record of the event details.
 
Method Summary
 ResultSetRow getRecord()
          Returns the record of the database event details
 void setRecord(ResultSetRow record)
          Sets the record of the database event details
 
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

DBPollEvent

public DBPollEvent(DBPoller source)
Default constructor. Calls super(source)

Parameters:
source - the DBPoller that caused/created the event
See Also:
EventObject.EventObject(java.lang.Object)

DBPollEvent

public DBPollEvent(DBPoller source,
                   ResultSetRow record)
Sets up the event object with a record of the event details. Calls DBPollEvent(com.ge.research.utils.db.DBPoller)

Parameters:
source - the DBPoller that caused/created the event
record - the record of the details of the database event. Normally equivalent to the database row that was inserted, updated, or deleted.
See Also:
DBPollEvent(com.ge.research.utils.db.DBPoller), setRecord(com.ge.research.utils.db.ResultSetRow)
Method Detail

getRecord

public final ResultSetRow getRecord()
Returns the record of the database event details

Returns:
The record of the database event details.

setRecord

public final void setRecord(ResultSetRow record)
Sets the record of the database event details

Parameters:
record - the record of the database event details