Class TransactionOption
java.lang.Object
org.eclipse.birt.report.model.api.activity.TransactionOption
Class provided to set some options for the transaction. It can set event
filter, set event send or hold option and so on.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Instantaneous send time option.static final int
Outmost transaction send time option.static final int
Self transaction send time option. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the event filter set in this option.int
Gets the event send option.void
setEventfilter
(IEventFilter eventFilter) void
setSendTime
(int eventTime) Sets the option to control when to send the event.
-
Field Details
-
INSTANTANEOUS_SEND_TIME
public static final int INSTANTANEOUS_SEND_TIMEInstantaneous send time option. It means that the notification event will be send once it is executed/redo/undo, committed/rolled back.- See Also:
-
SELF_TRANSACTION_SEND_TIME
public static final int SELF_TRANSACTION_SEND_TIMESelf transaction send time option. It means that the notification event will be held until the latest transaction is committed or rolled back.- See Also:
-
OUTMOST_TRANSACTION_SEND_TIME
public static final int OUTMOST_TRANSACTION_SEND_TIMEOutmost transaction send time option. It means that the notification event will be held until the outmost transaction is comitted or rolled back.- See Also:
-
-
Constructor Details
-
TransactionOption
public TransactionOption()Default constructor.
-
-
Method Details
-
getEventFilter
Gets the event filter set in this option.- Returns:
- the event filter
-
getSendTime
public int getSendTime()Gets the event send option. It can be one of the following options.- INSTANTANEOUS_EVENT_SEND
- SELF_TRANSACTION_EVENT_SEND
- OUTMOST_TRANSACTION_EVENT_SEND
- Returns:
- the event send option
-
setEventfilter
- Parameters:
eventFilter
- the eventfilter to set
-
setSendTime
public void setSendTime(int eventTime) Sets the option to control when to send the event.- Parameters:
eventTime
- the eventTime to set
-