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

public class AddValue extends ChangeValue
This command holds the information needed to execute an add command.
Since:
5.0
Author:
F. v.d. Meer, O. Kerpershoek, N. van Noorloos
See Also:
  • Constructor Details

    • AddValue

      public AddValue(ValueReference reference, ISingleValue attributeValue, boolean wasUnknown)
      Constructs an add-value command.
      Parameters:
      reference - The reference to the attribute to which a value was added.
      attributeValue - The value that was added to the attribute.
      wasUnknown - Boolean indicating if the attribute was unknown before the add 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.