Class GeneratedDiscount

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

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

    • ABSOLUTE

      public static final String ABSOLUTE
      Qualifier of the Discount.absolute attribute
      See Also:
    • CODE

      public static final String CODE
      Qualifier of the Discount.code attribute
      See Also:
    • CURRENCY

      public static final String CURRENCY
      Qualifier of the Discount.currency attribute
      See Also:
    • GLOBAL

      public static final String GLOBAL
      Qualifier of the Discount.global attribute
      See Also:
    • NAME

      public static final String NAME
      Qualifier of the Discount.name attribute
      See Also:
    • PRIORITY

      public static final String PRIORITY
      Qualifier of the Discount.priority attribute
      See Also:
    • VALUE

      public static final String VALUE
      Qualifier of the Discount.value attribute
      See Also:
    • DISCOUNTSTRING

      public static final String DISCOUNTSTRING
      Qualifier of the Discount.discountString attribute
      See Also:
    • ORDERS

      public static final String ORDERS
      Qualifier of the Discount.orders attribute
      See Also:
    • ORDERDISCOUNTRELATION_SRC_ORDERED

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

      protected static String ORDERDISCOUNTRELATION_TGT_ORDERED
    • ORDERDISCOUNTRELATION_MARKMODIFIED

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

      protected static final Map<String,Item.AttributeMode> DEFAULT_INITIAL_ATTRIBUTES
  • Constructor Details

    • GeneratedDiscount

      public GeneratedDiscount()
  • Method Details

    • getDefaultAttributeModes

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

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

      public 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 String getCode(SessionContext ctx)
      Generated method - Getter of the Discount.code attribute.
      Returns:
      the code
    • getCode

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

      public void setCode(SessionContext ctx, String value) throws ConsistencyCheckException
      Generated method - Setter of the Discount.code attribute.
      Parameters:
      value - the code
      Throws:
      ConsistencyCheckException
    • setCode

      public void setCode(String value) throws ConsistencyCheckException
      Generated method - Setter of the Discount.code attribute.
      Parameters:
      value - the code
      Throws:
      ConsistencyCheckException
    • 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 String getDiscountString(SessionContext ctx)
      Generated method - Getter of the Discount.discountString attribute.
      Returns:
      the discountString
    • getDiscountString

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

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

      public 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, 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
    • 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
    • isMarkModifiedDisabled

      @Deprecated(since="2105", forRemoval=true) public boolean isMarkModifiedDisabled(Item referencedItem)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      isMarkModifiedDisabled in class Item
    • getName

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

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

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

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

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

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

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

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

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

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

      public long getOrdersCount(SessionContext ctx)
    • getOrdersCount

      public long getOrdersCount()
    • setOrders

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

      public void setOrders(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 Integer getPriority(SessionContext ctx)
      Generated method - Getter of the Discount.priority attribute.
      Returns:
      the priority
    • getPriority

      public 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, Integer value)
      Generated method - Setter of the Discount.priority attribute.
      Parameters:
      value - the priority
    • setPriority

      public void setPriority(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 Double getValue(SessionContext ctx)
      Generated method - Getter of the Discount.value attribute.
      Returns:
      the value
    • getValue

      public 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, 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
    • 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