com.ibm.j2ca.extension.eventmanagement
Class Event
java.lang.Object
com.ibm.j2ca.extension.eventmanagement.Event
- public class Event
- extends java.lang.Object
This class represents an Event. An event is usually a subset of an object
that the adapter wants to publish. Generally an event corresponds to an event
record in an event table that contains a unique event ID and the information
needed to retrieve the entire object from the EIS system.
Field Summary |
static int |
FAILED
FAILED This indicates that the event could not be
processed. |
static int |
INPROGRESS
INPROGRESS This status indicates that the event in in
process. |
static int |
NEWEVENT
|
static int |
PROCESSED
PROCESSED This status indicates that the event's
processing is completed. |
static int |
UNSUBSCRIBED
UNSUBSCRIBED This indicates that the event was processed,
but there were no interested subscribers. |
Constructor Summary |
Event()
This is the default constructor for Event. |
Event(java.lang.String id,
java.lang.String type,
int status)
|
Event(java.lang.String id,
java.lang.String type,
java.lang.String keys,
int status)
|
Event(java.lang.String id,
java.lang.String type,
java.lang.String keys,
int status,
java.sql.Timestamp timeStamp)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NEWEVENT
public static int NEWEVENT
INPROGRESS
public static int INPROGRESS
INPROGRESS
This status indicates that the event in in
process.
PROCESSED
public static int PROCESSED
PROCESSED
This status indicates that the event's
processing is completed.
FAILED
public static int FAILED
FAILED
This indicates that the event could not be
processed.
UNSUBSCRIBED
public static int UNSUBSCRIBED
UNSUBSCRIBED
This indicates that the event was processed,
but there were no interested subscribers.
Event
public Event()
- This is the default constructor for Event. No properties are set.
Event
public Event(java.lang.String id,
java.lang.String type,
int status)
- Parameters:
id
- The event idtype
- The event typestatus
- The status of the event
Event
public Event(java.lang.String id,
java.lang.String type,
java.lang.String keys,
int status)
- Parameters:
id
- The event idkeys
- The object keytype
- The event typestatus
- The status of the event
Event
public Event(java.lang.String id,
java.lang.String type,
java.lang.String keys,
int status,
java.sql.Timestamp timeStamp)
- Parameters:
id
- The event idkeys
- The object keytype
- The event typestatus
- The status of the event
setEventStatus
public void setEventStatus(int newStatus)
getEventStatus
public int getEventStatus()
getEventId
public java.lang.String getEventId()
getEventType
public java.lang.String getEventType()
setEventId
public void setEventId(java.lang.String eventId)
setEventType
public void setEventType(java.lang.String eventType)
getEventKeys
public java.lang.String getEventKeys()
setEventKeys
public void setEventKeys(java.lang.String eventKeys)
- Parameters:
eventKeys
- The eventKeys to set.
getTimeStamp
public java.sql.Timestamp getTimeStamp()
- Returns:
- Returns the timeStamp.
setTimeStamp
public void setTimeStamp(java.sql.Timestamp timeStamp)
- Parameters:
timeStamp
- The timeStamp to set.