java.lang.Object
com.aquima.interactions.profile.model.command.ChangeValue
com.aquima.interactions.profile.model.command.SetValue
All Implemented Interfaces:
ITransactionalAction, Serializable

public class SetValue extends ChangeValue
This command holds the information needed to execute a set-value command.
Since:
5.0
Author:
O. Kerpershoek, N. van Noorloos
See Also:
  • Constructor Details

    • SetValue

      public SetValue(ValueReference valueReference, IValue oldValue, boolean wasUnknown)
      Constructs a set-value command.
      Parameters:
      valueReference - The reference to the attribute whose value was set.
      oldValue - The old value of the attribute.
      wasUnknown - Boolean indicating if the attribute was unknown before the set action.
  • Method Details

    • rollback

      public void rollback(IRollbackContext context)
      Description copied from interface: ITransactionalAction
      Performs a roll-back on the current (sub)transaction.
      Parameters:
      context - the rollback context
    • duplicate

      public ITransactionalAction duplicate()
      Description copied from interface: ITransactionalAction
      Returns a deep copy of the transaction.
      Returns:
      The copied action.