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 intReads the event number.final String[]Reads the fieldnames of this event.final StringgetHDoc()Reads the HDOC for this event.final Stringfinal intReads the status of this event.final StringReads the SysRowId of this event.final DateReads the timestamp of this event.final StringReads the transaction ID of this event.voidsetDDCName(String ddc) voidsetFieldNames(String[] names) voidsetLinkDDCName(String name) final voidsetParentId(String id) voidsetStatus(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:
getLinkDDCNamein interfaceSaEvent- Returns:
- Link DDC name
-
setDDCName
- Parameters:
ddc- DDCName
-
getDDCName
Description copied from interface:SaEventReads the ddc name.- Specified by:
getDDCNamein interfaceSaEvent- Returns:
- DDCName
-
getLinkId
- Returns:
- Link ID
-
getEventNumber
public final int getEventNumber()Reads the event number.- Specified by:
getEventNumberin 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:
getSysRowIdin interfaceSaEvent- Returns:
- the sysRowId
- See Also:
-
com.saperion.event.SaWfEvent#getXsysrowid()
-
getTimestamp
Reads the timestamp of this event.- Specified by:
getTimestampin interfaceSaEvent- Returns:
- the timestamp
- See Also:
-
com.saperion.event.SaWfEvent#getTimestamp()
-
getTransactionId
Reads the transaction ID of this event.- Specified by:
getTransactionIdin interfaceSaEvent- Returns:
- the transactionId
- See Also:
-
com.saperion.event.SaWfEvent#getTransactionId()
-
getFieldNames
Reads the fieldnames of this event.- Specified by:
getFieldNamesin 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:
getParentIdin interfaceSaEvent- Returns:
- the parentId
-
setParentId
- Parameters:
id- the parentId to set
-
toString
-