Class TransactionOption

java.lang.Object
org.eclipse.birt.report.model.api.activity.TransactionOption

public class TransactionOption extends Object
Class provided to set some options for the transaction. It can set event filter, set event send or hold option and so on.
  • Field Details

    • INSTANTANEOUS_SEND_TIME

      public static final int INSTANTANEOUS_SEND_TIME
      Instantaneous 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_TIME
      Self 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_TIME
      Outmost 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

      public IEventFilter 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

      public void setEventfilter(IEventFilter eventFilter)
      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