Class IncrementIntValueToKeyModel


public class IncrementIntValueToKeyModel 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 (non-negative) value that should be added to the current IntValue of the data object. For example, if this value is set to 5 and the old IntValue is 1, then the new IntValue will be the old one plus 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 an upper bound. For example, if you set the Bound parameter (below) to 10, you will be able to increment the int value until you reach ten (inclusive). Once the upper bound is reached, an error will be thrown.
    • Bound

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

    • IncrementIntValueToKeyModel

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

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