Class DecrementIntValueToKeyModel


public class DecrementIntValueToKeyModel extends ProductAndKeyModel
  • Field Details

    • Id

      public long Id
      The unique object id for the data object.
    • Name

      public String Name
    • IntValue

      public int IntValue
      The constant int value that should be subtracted to the current IntValue of the data object. For example, if this value is set to 5 and the old IntValue is 11, then the new IntValue will be the old one minus 5, i.e. 6. Note, if you would set this value to -5 instead, the same result would be achieved.
    • EnableBound

      public boolean EnableBound
      If set to true, it will be possible to specify a lower bound. For example, if you set the Bound parameter (below) to 0, you will be able to decrement the int value until you reach zero (inclusive). Once the lower bound is reached, an error will be thrown.
    • Bound

      public int Bound
      This is the lower bound that will be enforced on the decrement operation. It will only be enforced if EnableBound is set to true. Please read the description above.
  • Constructor Details

    • DecrementIntValueToKeyModel

      public DecrementIntValueToKeyModel(int productId, String key, long id, int intValue, boolean enableBound, int bound)
    • DecrementIntValueToKeyModel

      public DecrementIntValueToKeyModel(int productId, String key, String name, int intValue, boolean enableBound, int bound)