Class GeneratedDiscount

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable
    Direct Known Subclasses:
    Discount

    public abstract class GeneratedDiscount
    extends GenericItem
    Generated class for type Discount.
    See Also:
    Serialized Form
    • Field Detail

      • ABSOLUTE

        public static final java.lang.String ABSOLUTE
        Qualifier of the Discount.absolute attribute
        See Also:
        Constant Field Values
      • CODE

        public static final java.lang.String CODE
        Qualifier of the Discount.code attribute
        See Also:
        Constant Field Values
      • CURRENCY

        public static final java.lang.String CURRENCY
        Qualifier of the Discount.currency attribute
        See Also:
        Constant Field Values
      • GLOBAL

        public static final java.lang.String GLOBAL
        Qualifier of the Discount.global attribute
        See Also:
        Constant Field Values
      • NAME

        public static final java.lang.String NAME
        Qualifier of the Discount.name attribute
        See Also:
        Constant Field Values
      • PRIORITY

        public static final java.lang.String PRIORITY
        Qualifier of the Discount.priority attribute
        See Also:
        Constant Field Values
      • VALUE

        public static final java.lang.String VALUE
        Qualifier of the Discount.value attribute
        See Also:
        Constant Field Values
      • DISCOUNTSTRING

        public static final java.lang.String DISCOUNTSTRING
        Qualifier of the Discount.discountString attribute
        See Also:
        Constant Field Values
      • ORDERS

        public static final java.lang.String ORDERS
        Qualifier of the Discount.orders attribute
        See Also:
        Constant Field Values
      • ORDERDISCOUNTRELATION_SRC_ORDERED

        protected static java.lang.String ORDERDISCOUNTRELATION_SRC_ORDERED
        Relation ordering override parameter constants for OrderDiscountRelation from ((core))
      • ORDERDISCOUNTRELATION_TGT_ORDERED

        protected static java.lang.String ORDERDISCOUNTRELATION_TGT_ORDERED
      • ORDERDISCOUNTRELATION_MARKMODIFIED

        protected static java.lang.String ORDERDISCOUNTRELATION_MARKMODIFIED
        Relation disable markmodifed parameter constants for OrderDiscountRelation from ((core))
      • DEFAULT_INITIAL_ATTRIBUTES

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

      • GeneratedDiscount

        public GeneratedDiscount()
    • Method Detail

      • isAbsolute

        public abstract java.lang.Boolean isAbsolute​(SessionContext ctx)
        Generated method - Getter of the Discount.absolute attribute.
        Returns:
        the absolute
      • isAbsolute

        public java.lang.Boolean isAbsolute()
        Generated method - Getter of the Discount.absolute attribute.
        Returns:
        the absolute
      • isAbsoluteAsPrimitive

        public boolean isAbsoluteAsPrimitive​(SessionContext ctx)
        Generated method - Getter of the Discount.absolute attribute.
        Returns:
        the absolute
      • isAbsoluteAsPrimitive

        public boolean isAbsoluteAsPrimitive()
        Generated method - Getter of the Discount.absolute attribute.
        Returns:
        the absolute
      • getCode

        public java.lang.String getCode​(SessionContext ctx)
        Generated method - Getter of the Discount.code attribute.
        Returns:
        the code
      • getCode

        public java.lang.String getCode()
        Generated method - Getter of the Discount.code attribute.
        Returns:
        the code
      • getCurrency

        public Currency getCurrency​(SessionContext ctx)
        Generated method - Getter of the Discount.currency attribute.
        Returns:
        the currency
      • getCurrency

        public Currency getCurrency()
        Generated method - Getter of the Discount.currency attribute.
        Returns:
        the currency
      • setCurrency

        public void setCurrency​(SessionContext ctx,
                                Currency value)
        Generated method - Setter of the Discount.currency attribute.
        Parameters:
        value - the currency
      • setCurrency

        public void setCurrency​(Currency value)
        Generated method - Setter of the Discount.currency attribute.
        Parameters:
        value - the currency
      • getDiscountString

        public abstract java.lang.String getDiscountString​(SessionContext ctx)
        Generated method - Getter of the Discount.discountString attribute.
        Returns:
        the discountString
      • getDiscountString

        public java.lang.String getDiscountString()
        Generated method - Getter of the Discount.discountString attribute.
        Returns:
        the discountString
      • isGlobal

        public java.lang.Boolean isGlobal​(SessionContext ctx)
        Generated method - Getter of the Discount.global attribute.
        Returns:
        the global
      • isGlobal

        public java.lang.Boolean isGlobal()
        Generated method - Getter of the Discount.global attribute.
        Returns:
        the global
      • isGlobalAsPrimitive

        public boolean isGlobalAsPrimitive​(SessionContext ctx)
        Generated method - Getter of the Discount.global attribute.
        Returns:
        the global
      • isGlobalAsPrimitive

        public boolean isGlobalAsPrimitive()
        Generated method - Getter of the Discount.global attribute.
        Returns:
        the global
      • setGlobal

        public void setGlobal​(SessionContext ctx,
                              java.lang.Boolean value)
        Generated method - Setter of the Discount.global attribute.
        Parameters:
        value - the global
      • setGlobal

        public void setGlobal​(java.lang.Boolean value)
        Generated method - Setter of the Discount.global attribute.
        Parameters:
        value - the global
      • setGlobal

        public void setGlobal​(SessionContext ctx,
                              boolean value)
        Generated method - Setter of the Discount.global attribute.
        Parameters:
        value - the global
      • setGlobal

        public void setGlobal​(boolean value)
        Generated method - Setter of the Discount.global attribute.
        Parameters:
        value - the global
      • getName

        public java.lang.String getName​(SessionContext ctx)
        Generated method - Getter of the Discount.name attribute.
        Returns:
        the name
      • getName

        public java.lang.String getName()
        Generated method - Getter of the Discount.name attribute.
        Returns:
        the name
      • getAllName

        public java.util.Map<Language,​java.lang.String> getAllName​(SessionContext ctx)
        Generated method - Getter of the Discount.name attribute.
        Returns:
        the localized name
      • getAllName

        public java.util.Map<Language,​java.lang.String> getAllName()
        Generated method - Getter of the Discount.name attribute.
        Returns:
        the localized name
      • setName

        public void setName​(SessionContext ctx,
                            java.lang.String value)
        Generated method - Setter of the Discount.name attribute.
        Parameters:
        value - the name
      • setName

        public void setName​(java.lang.String value)
        Generated method - Setter of the Discount.name attribute.
        Parameters:
        value - the name
      • setAllName

        public void setAllName​(SessionContext ctx,
                               java.util.Map<Language,​java.lang.String> value)
        Generated method - Setter of the Discount.name attribute.
        Parameters:
        value - the name
      • setAllName

        public void setAllName​(java.util.Map<Language,​java.lang.String> value)
        Generated method - Setter of the Discount.name attribute.
        Parameters:
        value - the name
      • getOrders

        public java.util.Collection<AbstractOrder> getOrders​(SessionContext ctx)
        Generated method - Getter of the Discount.orders attribute.
        Returns:
        the orders
      • getOrders

        public java.util.Collection<AbstractOrder> getOrders()
        Generated method - Getter of the Discount.orders attribute.
        Returns:
        the orders
      • getOrdersCount

        public long getOrdersCount()
      • setOrders

        public void setOrders​(SessionContext ctx,
                              java.util.Collection<AbstractOrder> value)
        Generated method - Setter of the Discount.orders attribute.
        Parameters:
        value - the orders
      • setOrders

        public void setOrders​(java.util.Collection<AbstractOrder> value)
        Generated method - Setter of the Discount.orders attribute.
        Parameters:
        value - the orders
      • addToOrders

        public void addToOrders​(SessionContext ctx,
                                AbstractOrder value)
        Generated method - Adds value to orders.
        Parameters:
        value - the item to add to orders
      • addToOrders

        public void addToOrders​(AbstractOrder value)
        Generated method - Adds value to orders.
        Parameters:
        value - the item to add to orders
      • removeFromOrders

        public void removeFromOrders​(SessionContext ctx,
                                     AbstractOrder value)
        Generated method - Removes value from orders.
        Parameters:
        value - the item to remove from orders
      • removeFromOrders

        public void removeFromOrders​(AbstractOrder value)
        Generated method - Removes value from orders.
        Parameters:
        value - the item to remove from orders
      • getPriority

        public java.lang.Integer getPriority​(SessionContext ctx)
        Generated method - Getter of the Discount.priority attribute.
        Returns:
        the priority
      • getPriority

        public java.lang.Integer getPriority()
        Generated method - Getter of the Discount.priority attribute.
        Returns:
        the priority
      • getPriorityAsPrimitive

        public int getPriorityAsPrimitive​(SessionContext ctx)
        Generated method - Getter of the Discount.priority attribute.
        Returns:
        the priority
      • getPriorityAsPrimitive

        public int getPriorityAsPrimitive()
        Generated method - Getter of the Discount.priority attribute.
        Returns:
        the priority
      • setPriority

        public void setPriority​(SessionContext ctx,
                                java.lang.Integer value)
        Generated method - Setter of the Discount.priority attribute.
        Parameters:
        value - the priority
      • setPriority

        public void setPriority​(java.lang.Integer value)
        Generated method - Setter of the Discount.priority attribute.
        Parameters:
        value - the priority
      • setPriority

        public void setPriority​(SessionContext ctx,
                                int value)
        Generated method - Setter of the Discount.priority attribute.
        Parameters:
        value - the priority
      • setPriority

        public void setPriority​(int value)
        Generated method - Setter of the Discount.priority attribute.
        Parameters:
        value - the priority
      • getValue

        public java.lang.Double getValue​(SessionContext ctx)
        Generated method - Getter of the Discount.value attribute.
        Returns:
        the value
      • getValue

        public java.lang.Double getValue()
        Generated method - Getter of the Discount.value attribute.
        Returns:
        the value
      • getValueAsPrimitive

        public double getValueAsPrimitive​(SessionContext ctx)
        Generated method - Getter of the Discount.value attribute.
        Returns:
        the value
      • getValueAsPrimitive

        public double getValueAsPrimitive()
        Generated method - Getter of the Discount.value attribute.
        Returns:
        the value
      • setValue

        public void setValue​(SessionContext ctx,
                             java.lang.Double value)
        Generated method - Setter of the Discount.value attribute.
        Parameters:
        value - the value
      • setValue

        public void setValue​(java.lang.Double value)
        Generated method - Setter of the Discount.value attribute.
        Parameters:
        value - the value
      • setValue

        public void setValue​(SessionContext ctx,
                             double value)
        Generated method - Setter of the Discount.value attribute.
        Parameters:
        value - the value
      • setValue

        public void setValue​(double value)
        Generated method - Setter of the Discount.value attribute.
        Parameters:
        value - the value