Class GeneratedProductQuantityRestriction

    • Field Detail

      • QUANTITY

        public static final java.lang.String QUANTITY
        Qualifier of the ProductQuantityRestriction.quantity attribute
        See Also:
        Constant Field Values
      • UNIT

        public static final java.lang.String UNIT
        Qualifier of the ProductQuantityRestriction.unit attribute
        See Also:
        Constant Field Values
      • DEFAULT_INITIAL_ATTRIBUTES

        protected static final java.util.Map<java.lang.String,​Item.AttributeMode> DEFAULT_INITIAL_ATTRIBUTES
    • Constructor Detail

      • GeneratedProductQuantityRestriction

        public GeneratedProductQuantityRestriction()
    • Method Detail

      • getQuantity

        public java.lang.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 java.lang.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,
                                java.lang.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​(java.lang.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.