Class GeneratedAbstractOrderEntry

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

public abstract class GeneratedAbstractOrderEntry extends GenericItem
Generated class for type AbstractOrderEntry.
See Also:
  • Field Details

  • Constructor Details

    • GeneratedAbstractOrderEntry

      public GeneratedAbstractOrderEntry()
  • Method Details

    • getDefaultAttributeModes

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

      public Double getBasePrice(SessionContext ctx)
      Generated method - Getter of the AbstractOrderEntry.basePrice attribute.
      Returns:
      the basePrice
    • getBasePrice

      public Double getBasePrice()
      Generated method - Getter of the AbstractOrderEntry.basePrice attribute.
      Returns:
      the basePrice
    • getBasePriceAsPrimitive

      public double getBasePriceAsPrimitive(SessionContext ctx)
      Generated method - Getter of the AbstractOrderEntry.basePrice attribute.
      Returns:
      the basePrice
    • getBasePriceAsPrimitive

      public double getBasePriceAsPrimitive()
      Generated method - Getter of the AbstractOrderEntry.basePrice attribute.
      Returns:
      the basePrice
    • setBasePrice

      public void setBasePrice(SessionContext ctx, Double value)
      Generated method - Setter of the AbstractOrderEntry.basePrice attribute.
      Parameters:
      value - the basePrice
    • setBasePrice

      public void setBasePrice(Double value)
      Generated method - Setter of the AbstractOrderEntry.basePrice attribute.
      Parameters:
      value - the basePrice
    • setBasePrice

      public void setBasePrice(SessionContext ctx, double value)
      Generated method - Setter of the AbstractOrderEntry.basePrice attribute.
      Parameters:
      value - the basePrice
    • setBasePrice

      public void setBasePrice(double value)
      Generated method - Setter of the AbstractOrderEntry.basePrice attribute.
      Parameters:
      value - the basePrice
    • isCalculated

      public Boolean isCalculated(SessionContext ctx)
      Generated method - Getter of the AbstractOrderEntry.calculated attribute.
      Returns:
      the calculated
    • isCalculated

      public Boolean isCalculated()
      Generated method - Getter of the AbstractOrderEntry.calculated attribute.
      Returns:
      the calculated
    • isCalculatedAsPrimitive

      public boolean isCalculatedAsPrimitive(SessionContext ctx)
      Generated method - Getter of the AbstractOrderEntry.calculated attribute.
      Returns:
      the calculated
    • isCalculatedAsPrimitive

      public boolean isCalculatedAsPrimitive()
      Generated method - Getter of the AbstractOrderEntry.calculated attribute.
      Returns:
      the calculated
    • setCalculated

      public void setCalculated(SessionContext ctx, Boolean value)
      Generated method - Setter of the AbstractOrderEntry.calculated attribute.
      Parameters:
      value - the calculated
    • setCalculated

      public void setCalculated(Boolean value)
      Generated method - Setter of the AbstractOrderEntry.calculated attribute.
      Parameters:
      value - the calculated
    • setCalculated

      public void setCalculated(SessionContext ctx, boolean value)
      Generated method - Setter of the AbstractOrderEntry.calculated attribute.
      Parameters:
      value - the calculated
    • setCalculated

      public void setCalculated(boolean value)
      Generated method - Setter of the AbstractOrderEntry.calculated attribute.
      Parameters:
      value - the calculated
    • createItem

      protected Item createItem(SessionContext ctx, ComposedType type, Item.ItemAttributeMap allAttributes) throws JaloBusinessException
      Description copied from class: Item
      Has to be implemented for each concrete subtype of item. This method is responsible for creating a new item instance ( by calling managers, ejb homes, etc. ) during ComposedType.newInstance(Map).

      In case this method uses any of the attribute values during creation it is required to override Item.getNonInitialAttributes(SessionContext, ItemAttributeMap) too.
      Sn example:

      
       public static final String MY_ATTRIBUTE = "someAttribute"; ... protected Item createItem(SessionContext
       ctx, ComposedType type, Map allAttributes ) throws JaloBusinessException { MyManager man = ... return
       man.createMyItem( (String)allAttributes.get(MY_ATTRIBUTE) );
       // here MY_ATTRIBUTE is used for creation, so it must not be set again } protected Map getNonInitialAttributes(
       SessionContext ctx, Map allAttributes ) { // let superclass remove its own initial attributes Map ret =
       super.getNonInitialAttributes( ctx, allAttributes );
       // remove MY_ATTRIBUTE from all attributes since if has already been set ret.remove(MY_ATTRIBUTE); return ret; }
      
       
      Overrides:
      createItem in class GenericItem
      Parameters:
      ctx - the current session context which this item is created within
      type - the actual item type ( since subtypes may not provide a own jalo class this may be different from the type which this method was implemented for )
      Returns:
      the new item instance
      Throws:
      JaloBusinessException - indicates an error during creation - any changes will be rollbacked
    • getDiscountValuesInternal

      public String getDiscountValuesInternal(SessionContext ctx)
      Generated method - Getter of the AbstractOrderEntry.discountValuesInternal attribute.
      Returns:
      the discountValuesInternal
    • getDiscountValuesInternal

      public String getDiscountValuesInternal()
      Generated method - Getter of the AbstractOrderEntry.discountValuesInternal attribute.
      Returns:
      the discountValuesInternal
    • setDiscountValuesInternal

      public void setDiscountValuesInternal(SessionContext ctx, String value)
      Generated method - Setter of the AbstractOrderEntry.discountValuesInternal attribute.
      Parameters:
      value - the discountValuesInternal
    • setDiscountValuesInternal

      public void setDiscountValuesInternal(String value)
      Generated method - Setter of the AbstractOrderEntry.discountValuesInternal attribute.
      Parameters:
      value - the discountValuesInternal
    • getEntryGroupNumbers

      public Set<Integer> getEntryGroupNumbers(SessionContext ctx)
      Generated method - Getter of the AbstractOrderEntry.entryGroupNumbers attribute.
      Returns:
      the entryGroupNumbers - List of EntryGroup numbers that this order entry belongs to.
    • getEntryGroupNumbers

      public Set<Integer> getEntryGroupNumbers()
      Generated method - Getter of the AbstractOrderEntry.entryGroupNumbers attribute.
      Returns:
      the entryGroupNumbers - List of EntryGroup numbers that this order entry belongs to.
    • setEntryGroupNumbers

      public void setEntryGroupNumbers(SessionContext ctx, Set<Integer> value)
      Generated method - Setter of the AbstractOrderEntry.entryGroupNumbers attribute.
      Parameters:
      value - the entryGroupNumbers - List of EntryGroup numbers that this order entry belongs to.
    • setEntryGroupNumbers

      public void setEntryGroupNumbers(Set<Integer> value)
      Generated method - Setter of the AbstractOrderEntry.entryGroupNumbers attribute.
      Parameters:
      value - the entryGroupNumbers - List of EntryGroup numbers that this order entry belongs to.
    • getEntryNumber

      public Integer getEntryNumber(SessionContext ctx)
      Generated method - Getter of the AbstractOrderEntry.entryNumber attribute.
      Returns:
      the entryNumber
    • getEntryNumber

      public Integer getEntryNumber()
      Generated method - Getter of the AbstractOrderEntry.entryNumber attribute.
      Returns:
      the entryNumber
    • getEntryNumberAsPrimitive

      public int getEntryNumberAsPrimitive(SessionContext ctx)
      Generated method - Getter of the AbstractOrderEntry.entryNumber attribute.
      Returns:
      the entryNumber
    • getEntryNumberAsPrimitive

      public int getEntryNumberAsPrimitive()
      Generated method - Getter of the AbstractOrderEntry.entryNumber attribute.
      Returns:
      the entryNumber
    • setEntryNumber

      public void setEntryNumber(SessionContext ctx, Integer value)
      Generated method - Setter of the AbstractOrderEntry.entryNumber attribute.
      Parameters:
      value - the entryNumber
    • setEntryNumber

      public void setEntryNumber(Integer value)
      Generated method - Setter of the AbstractOrderEntry.entryNumber attribute.
      Parameters:
      value - the entryNumber
    • setEntryNumber

      public void setEntryNumber(SessionContext ctx, int value)
      Generated method - Setter of the AbstractOrderEntry.entryNumber attribute.
      Parameters:
      value - the entryNumber
    • setEntryNumber

      public void setEntryNumber(int value)
      Generated method - Setter of the AbstractOrderEntry.entryNumber attribute.
      Parameters:
      value - the entryNumber
    • isGiveAway

      public Boolean isGiveAway(SessionContext ctx)
      Generated method - Getter of the AbstractOrderEntry.giveAway attribute.
      Returns:
      the giveAway
    • isGiveAway

      public Boolean isGiveAway()
      Generated method - Getter of the AbstractOrderEntry.giveAway attribute.
      Returns:
      the giveAway
    • isGiveAwayAsPrimitive

      public boolean isGiveAwayAsPrimitive(SessionContext ctx)
      Generated method - Getter of the AbstractOrderEntry.giveAway attribute.
      Returns:
      the giveAway
    • isGiveAwayAsPrimitive

      public boolean isGiveAwayAsPrimitive()
      Generated method - Getter of the AbstractOrderEntry.giveAway attribute.
      Returns:
      the giveAway
    • setGiveAway

      public void setGiveAway(SessionContext ctx, Boolean value)
      Generated method - Setter of the AbstractOrderEntry.giveAway attribute.
      Parameters:
      value - the giveAway
    • setGiveAway

      public void setGiveAway(Boolean value)
      Generated method - Setter of the AbstractOrderEntry.giveAway attribute.
      Parameters:
      value - the giveAway
    • setGiveAway

      public void setGiveAway(SessionContext ctx, boolean value)
      Generated method - Setter of the AbstractOrderEntry.giveAway attribute.
      Parameters:
      value - the giveAway
    • setGiveAway

      public void setGiveAway(boolean value)
      Generated method - Setter of the AbstractOrderEntry.giveAway attribute.
      Parameters:
      value - the giveAway
    • getInfo

      public String getInfo(SessionContext ctx)
      Generated method - Getter of the AbstractOrderEntry.info attribute.
      Returns:
      the info
    • getInfo

      public String getInfo()
      Generated method - Getter of the AbstractOrderEntry.info attribute.
      Returns:
      the info
    • setInfo

      public void setInfo(SessionContext ctx, String value)
      Generated method - Setter of the AbstractOrderEntry.info attribute.
      Parameters:
      value - the info
    • setInfo

      public void setInfo(String value)
      Generated method - Setter of the AbstractOrderEntry.info attribute.
      Parameters:
      value - the info
    • getOrder

      public AbstractOrder getOrder(SessionContext ctx)
      Generated method - Getter of the AbstractOrderEntry.order attribute.
      Returns:
      the order
    • getOrder

      public AbstractOrder getOrder()
      Generated method - Getter of the AbstractOrderEntry.order attribute.
      Returns:
      the order
    • setOrder

      public void setOrder(SessionContext ctx, AbstractOrder value)
      Generated method - Setter of the AbstractOrderEntry.order attribute.
      Parameters:
      value - the order
    • setOrder

      public void setOrder(AbstractOrder value)
      Generated method - Setter of the AbstractOrderEntry.order attribute.
      Parameters:
      value - the order
    • getProduct

      public Product getProduct(SessionContext ctx)
      Generated method - Getter of the AbstractOrderEntry.product attribute.
      Returns:
      the product
    • getProduct

      public Product getProduct()
      Generated method - Getter of the AbstractOrderEntry.product attribute.
      Returns:
      the product
    • setProduct

      public void setProduct(SessionContext ctx, Product value)
      Generated method - Setter of the AbstractOrderEntry.product attribute.
      Parameters:
      value - the product
    • setProduct

      public void setProduct(Product value)
      Generated method - Setter of the AbstractOrderEntry.product attribute.
      Parameters:
      value - the product
    • getQuantity

      public Long getQuantity(SessionContext ctx)
      Generated method - Getter of the AbstractOrderEntry.quantity attribute.
      Returns:
      the quantity
    • getQuantity

      public Long getQuantity()
      Generated method - Getter of the AbstractOrderEntry.quantity attribute.
      Returns:
      the quantity
    • getQuantityAsPrimitive

      public long getQuantityAsPrimitive(SessionContext ctx)
      Generated method - Getter of the AbstractOrderEntry.quantity attribute.
      Returns:
      the quantity
    • getQuantityAsPrimitive

      public long getQuantityAsPrimitive()
      Generated method - Getter of the AbstractOrderEntry.quantity attribute.
      Returns:
      the quantity
    • setQuantity

      public void setQuantity(SessionContext ctx, Long value)
      Generated method - Setter of the AbstractOrderEntry.quantity attribute.
      Parameters:
      value - the quantity
    • setQuantity

      public void setQuantity(Long value)
      Generated method - Setter of the AbstractOrderEntry.quantity attribute.
      Parameters:
      value - the quantity
    • setQuantity

      public void setQuantity(SessionContext ctx, long value)
      Generated method - Setter of the AbstractOrderEntry.quantity attribute.
      Parameters:
      value - the quantity
    • setQuantity

      public void setQuantity(long value)
      Generated method - Setter of the AbstractOrderEntry.quantity attribute.
      Parameters:
      value - the quantity
    • isRejected

      public Boolean isRejected(SessionContext ctx)
      Generated method - Getter of the AbstractOrderEntry.rejected attribute.
      Returns:
      the rejected
    • isRejected

      public Boolean isRejected()
      Generated method - Getter of the AbstractOrderEntry.rejected attribute.
      Returns:
      the rejected
    • isRejectedAsPrimitive

      public boolean isRejectedAsPrimitive(SessionContext ctx)
      Generated method - Getter of the AbstractOrderEntry.rejected attribute.
      Returns:
      the rejected
    • isRejectedAsPrimitive

      public boolean isRejectedAsPrimitive()
      Generated method - Getter of the AbstractOrderEntry.rejected attribute.
      Returns:
      the rejected
    • setRejected

      public void setRejected(SessionContext ctx, Boolean value)
      Generated method - Setter of the AbstractOrderEntry.rejected attribute.
      Parameters:
      value - the rejected
    • setRejected

      public void setRejected(Boolean value)
      Generated method - Setter of the AbstractOrderEntry.rejected attribute.
      Parameters:
      value - the rejected
    • setRejected

      public void setRejected(SessionContext ctx, boolean value)
      Generated method - Setter of the AbstractOrderEntry.rejected attribute.
      Parameters:
      value - the rejected
    • setRejected

      public void setRejected(boolean value)
      Generated method - Setter of the AbstractOrderEntry.rejected attribute.
      Parameters:
      value - the rejected
    • getTaxValuesInternal

      public String getTaxValuesInternal(SessionContext ctx)
      Generated method - Getter of the AbstractOrderEntry.taxValuesInternal attribute.
      Returns:
      the taxValuesInternal
    • getTaxValuesInternal

      public String getTaxValuesInternal()
      Generated method - Getter of the AbstractOrderEntry.taxValuesInternal attribute.
      Returns:
      the taxValuesInternal
    • setTaxValuesInternal

      public void setTaxValuesInternal(SessionContext ctx, String value)
      Generated method - Setter of the AbstractOrderEntry.taxValuesInternal attribute.
      Parameters:
      value - the taxValuesInternal
    • setTaxValuesInternal

      public void setTaxValuesInternal(String value)
      Generated method - Setter of the AbstractOrderEntry.taxValuesInternal attribute.
      Parameters:
      value - the taxValuesInternal
    • getTotalPrice

      public Double getTotalPrice(SessionContext ctx)
      Generated method - Getter of the AbstractOrderEntry.totalPrice attribute.
      Returns:
      the totalPrice
    • getTotalPrice

      public Double getTotalPrice()
      Generated method - Getter of the AbstractOrderEntry.totalPrice attribute.
      Returns:
      the totalPrice
    • getTotalPriceAsPrimitive

      public double getTotalPriceAsPrimitive(SessionContext ctx)
      Generated method - Getter of the AbstractOrderEntry.totalPrice attribute.
      Returns:
      the totalPrice
    • getTotalPriceAsPrimitive

      public double getTotalPriceAsPrimitive()
      Generated method - Getter of the AbstractOrderEntry.totalPrice attribute.
      Returns:
      the totalPrice
    • setTotalPrice

      public void setTotalPrice(SessionContext ctx, Double value)
      Generated method - Setter of the AbstractOrderEntry.totalPrice attribute.
      Parameters:
      value - the totalPrice
    • setTotalPrice

      public void setTotalPrice(Double value)
      Generated method - Setter of the AbstractOrderEntry.totalPrice attribute.
      Parameters:
      value - the totalPrice
    • setTotalPrice

      public void setTotalPrice(SessionContext ctx, double value)
      Generated method - Setter of the AbstractOrderEntry.totalPrice attribute.
      Parameters:
      value - the totalPrice
    • setTotalPrice

      public void setTotalPrice(double value)
      Generated method - Setter of the AbstractOrderEntry.totalPrice attribute.
      Parameters:
      value - the totalPrice
    • getUnit

      public Unit getUnit(SessionContext ctx)
      Generated method - Getter of the AbstractOrderEntry.unit attribute.
      Returns:
      the unit
    • getUnit

      public Unit getUnit()
      Generated method - Getter of the AbstractOrderEntry.unit attribute.
      Returns:
      the unit
    • setUnit

      public void setUnit(SessionContext ctx, Unit value)
      Generated method - Setter of the AbstractOrderEntry.unit attribute.
      Parameters:
      value - the unit
    • setUnit

      public void setUnit(Unit value)
      Generated method - Setter of the AbstractOrderEntry.unit attribute.
      Parameters:
      value - the unit