Class TxEventListener

java.lang.Object
com.aquima.interactions.profile.model.TxEventListener
All Implemented Interfaces:
IEventListener, IInstanceListener, ITransactionListener, IValueListener, Serializable

public class TxEventListener extends Object implements IInstanceListener, IValueListener, ITransactionListener
Wrapper for an event listener that adds transaction support.
Since:
6.5
Author:
O. Kerpershoek
See Also:
  • Constructor Details

  • Method Details

    • getType

      public int getType()
      Description copied from interface: IEventListener
      This method should return a bit-mask containing the event types the listener wishes to be notified for.
      Specified by:
      getType in interface IEventListener
      Returns:
      a bit-mask containing the event types the listener wishes to be notified for.
    • onCreateInstance

      public void onCreateInstance(IInstanceEvent instanceEvent)
      Description copied from interface: IInstanceListener
      This method invoked just after creation of the new instance. The event object contains the IEntityInstance that was just created in the profile.
      Specified by:
      onCreateInstance in interface IInstanceListener
      Parameters:
      instanceEvent - Event object containing information about the object that triggered the event.
    • onDeleteInstance

      public void onDeleteInstance(IInstanceEvent instanceEvent)
      Description copied from interface: IInstanceListener
      This method is invoked just before deletion of the instance. The IEntityInstance is the instance that is being deleted
      Specified by:
      onDeleteInstance in interface IInstanceListener
      Parameters:
      instanceEvent - Event object containing information about the object that triggered the event.
    • onAddValue

      public void onAddValue(IValueEvent valueEvent)
      Description copied from interface: IValueListener
      This method is invoked just before the value will actually be added to the attribute. The value passed to this method is already converted to the format that is used internally.
      Specified by:
      onAddValue in interface IValueListener
      Parameters:
      valueEvent - IValueEvent object containing event specific data.
    • onClearValue

      public void onClearValue(IValueEvent valueEvent)
      Description copied from interface: IValueListener
      This method is invoked just before all the values will actually be set in the attribute. The value passed to this method is already converted to the format that is used internally.
      Specified by:
      onClearValue in interface IValueListener
      Parameters:
      valueEvent - IValueEvent object containing event specific data.
    • onRemoveValue

      public void onRemoveValue(IValueEvent valueEvent)
      Description copied from interface: IValueListener
      This method is invoked just before the value will actually be removed from the attribute. The value passed to this method is already converted to the format that is used internally.
      Specified by:
      onRemoveValue in interface IValueListener
      Parameters:
      valueEvent - IValueEvent object containing event specific data.
    • onSetValue

      public void onSetValue(IValueEvent valueEvent)
      Description copied from interface: IValueListener
      This method is invoked just before the value will actually be set in the attribute. The value passed to this method is already converted to the format that is used internally.
      Specified by:
      onSetValue in interface IValueListener
      Parameters:
      valueEvent - IValueEvent object containing event specific data.
    • onCommitTransaction

      public void onCommitTransaction(ITransactionEvent transactionEvent)
      Description copied from interface: ITransactionListener
      This method is invoked on the listener just before the transaction is committed.
      Specified by:
      onCommitTransaction in interface ITransactionListener
      Parameters:
      transactionEvent - Event containing information about the transaction.
    • onRollbackTransaction

      public void onRollbackTransaction(ITransactionEvent transactionEvent)
      Description copied from interface: ITransactionListener
      This method is invoked on the listener just before a roll-back of a transaction takes place.
      Specified by:
      onRollbackTransaction in interface ITransactionListener
      Parameters:
      transactionEvent - Event containing information about the transaction.
    • onStartTransaction

      public void onStartTransaction(ITransactionEvent transactionEvent)
      Description copied from interface: ITransactionListener
      This method is invoked on the listener just before a transaction is started.
      Specified by:
      onStartTransaction in interface ITransactionListener
      Parameters:
      transactionEvent - Event containing information about the transaction.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object