Package com.saperion.event
Class SaEventImpl
java.lang.Object
com.saperion.event.SaEventImpl
- All Implemented Interfaces:
SaEvent
,Serializable
Bean class for an event. The event is fired every time when some document is
changed (i.e. created/updated/deleted).
The event consists ofthe SYSROWID of the document;
the HDOC revisons number;
the ID of the event;
the events status;
timestamp;
the ID of the transaction in which the event is raised;
the text that comments this event;
the list of fields from the documents DDC which have been changed;
The event consists of
- Author:
- rbo
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReads the ddc name.final int
Reads the event number.final String[]
Reads the fieldnames of this event.final String
getHDoc()
Reads the HDOC for this event.final String
final int
Reads the status of this event.final String
Reads the SysRowId of this event.final Date
Reads the timestamp of this event.final String
Reads the transaction ID of this event.void
setDDCName
(String ddc) void
setFieldNames
(String[] names) void
setLinkDDCName
(String name) final void
setParentId
(String id) void
setStatus
(int statusId) toString()
-
Constructor Details
-
SaEventImpl
public SaEventImpl(String sysrowid, String doc, int eventnumber, int eventStatus, Date timeStamp, String transId, String[] fieldNames) - Parameters:
sysrowid
- SysRowIddoc
- HDOCeventnumber
- EventnumbereventStatus
- StatustimeStamp
- TimestamptransId
- Transaction idfieldNames
- Fieldnames
-
SaEventImpl
public SaEventImpl(String sysrowid, String doc, int eventnumber, String eventLinkId, Date timeStamp, String transId, String[] fieldNames) - Parameters:
sysrowid
- SysRowIddoc
- HDOCeventnumber
- EventnumbereventLinkId
- Node SysRowIdtimeStamp
- TimestamptransId
- Transaction idfieldNames
- Fieldnames
-
-
Method Details
-
setLinkDDCName
- Parameters:
name
- Link DDC name
-
getLinkDDCName
- Specified by:
getLinkDDCName
in interfaceSaEvent
- Returns:
- Link DDC name
-
setDDCName
- Parameters:
ddc
- DDCName
-
getDDCName
Description copied from interface:SaEvent
Reads the ddc name.- Specified by:
getDDCName
in interfaceSaEvent
- Returns:
- DDCName
-
getLinkId
- Returns:
- Link ID
-
getEventNumber
public final int getEventNumber()Reads the event number.- Specified by:
getEventNumber
in interfaceSaEvent
- Returns:
- the eventNumber
- See Also:
-
com.saperion.event.SaWfEvent#getEventNumber()
-
getHDoc
Reads the HDOC for this event. -
getStatus
public final int getStatus()Reads the status of this event. -
getSysRowId
Reads the SysRowId of this event.- Specified by:
getSysRowId
in interfaceSaEvent
- Returns:
- the sysRowId
- See Also:
-
com.saperion.event.SaWfEvent#getXsysrowid()
-
getTimestamp
Reads the timestamp of this event.- Specified by:
getTimestamp
in interfaceSaEvent
- Returns:
- the timestamp
- See Also:
-
com.saperion.event.SaWfEvent#getTimestamp()
-
getTransactionId
Reads the transaction ID of this event.- Specified by:
getTransactionId
in interfaceSaEvent
- Returns:
- the transactionId
- See Also:
-
com.saperion.event.SaWfEvent#getTransactionId()
-
getFieldNames
Reads the fieldnames of this event.- Specified by:
getFieldNames
in interfaceSaEvent
- Returns:
- Changed fieldnames
- See Also:
-
com.saperion.event.SaWfEvent#getFieldNames()
-
setFieldNames
- Parameters:
names
- Array of names
-
setStatus
public void setStatus(int statusId) - Parameters:
statusId
- Status
-
getParentId
- Specified by:
getParentId
in interfaceSaEvent
- Returns:
- the parentId
-
setParentId
- Parameters:
id
- the parentId to set
-
toString
-