Class GeneratedProductQuantityRestriction

All Implemented Interfaces:
Serializable, Comparable
Direct Known Subclasses:
ProductQuantityRestriction

public abstract class GeneratedProductQuantityRestriction extends ProductRestriction
Generated class for type ProductQuantityRestriction.
See Also:
  • Field Details

  • Constructor Details

    • GeneratedProductQuantityRestriction

      public GeneratedProductQuantityRestriction()
  • Method Details

    • getDefaultAttributeModes

      protected Map<String,Item.AttributeMode> getDefaultAttributeModes()
      Overrides:
      getDefaultAttributeModes in class GeneratedProductRestriction
    • getQuantity

      public Long getQuantity(SessionContext ctx)
      Generated method - Getter of the ProductQuantityRestriction.quantity attribute.
      Returns:
      the quantity - the quantity of products the given voucher is valid for.
    • getQuantity

      public Long getQuantity()
      Generated method - Getter of the ProductQuantityRestriction.quantity attribute.
      Returns:
      the quantity - the quantity of products the given voucher is valid for.
    • getQuantityAsPrimitive

      public long getQuantityAsPrimitive(SessionContext ctx)
      Generated method - Getter of the ProductQuantityRestriction.quantity attribute.
      Returns:
      the quantity - the quantity of products the given voucher is valid for.
    • getQuantityAsPrimitive

      public long getQuantityAsPrimitive()
      Generated method - Getter of the ProductQuantityRestriction.quantity attribute.
      Returns:
      the quantity - the quantity of products the given voucher is valid for.
    • setQuantity

      public void setQuantity(SessionContext ctx, Long value)
      Generated method - Setter of the ProductQuantityRestriction.quantity attribute.
      Parameters:
      value - the quantity - the quantity of products the given voucher is valid for.
    • setQuantity

      public void setQuantity(Long value)
      Generated method - Setter of the ProductQuantityRestriction.quantity attribute.
      Parameters:
      value - the quantity - the quantity of products the given voucher is valid for.
    • setQuantity

      public void setQuantity(SessionContext ctx, long value)
      Generated method - Setter of the ProductQuantityRestriction.quantity attribute.
      Parameters:
      value - the quantity - the quantity of products the given voucher is valid for.
    • setQuantity

      public void setQuantity(long value)
      Generated method - Setter of the ProductQuantityRestriction.quantity attribute.
      Parameters:
      value - the quantity - the quantity of products the given voucher is valid for.
    • getUnit

      public Unit getUnit(SessionContext ctx)
      Generated method - Getter of the ProductQuantityRestriction.unit attribute.
      Returns:
      the unit - the unit for the quantity of products the given voucher is valid for.
    • getUnit

      public Unit getUnit()
      Generated method - Getter of the ProductQuantityRestriction.unit attribute.
      Returns:
      the unit - the unit for the quantity of products the given voucher is valid for.
    • setUnit

      public void setUnit(SessionContext ctx, Unit value)
      Generated method - Setter of the ProductQuantityRestriction.unit attribute.
      Parameters:
      value - the unit - the unit for the quantity of products the given voucher is valid for.
    • setUnit

      public void setUnit(Unit value)
      Generated method - Setter of the ProductQuantityRestriction.unit attribute.
      Parameters:
      value - the unit - the unit for the quantity of products the given voucher is valid for.