Class GeneratedPriceRow

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

public abstract class GeneratedPriceRow extends PDTRow
Generated class for type PriceRow.
See Also:
  • Field Details

  • Constructor Details

    • GeneratedPriceRow

      public GeneratedPriceRow()
  • Method Details

    • getDefaultAttributeModes

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

      public CatalogVersion getCatalogVersion(SessionContext ctx)
      Generated method - Getter of the PriceRow.catalogVersion attribute.
      Returns:
      the catalogVersion
    • getCatalogVersion

      public CatalogVersion getCatalogVersion()
      Generated method - Getter of the PriceRow.catalogVersion attribute.
      Returns:
      the catalogVersion
    • setCatalogVersion

      public void setCatalogVersion(SessionContext ctx, CatalogVersion value)
      Generated method - Setter of the PriceRow.catalogVersion attribute.
      Parameters:
      value - the catalogVersion
    • setCatalogVersion

      public void setCatalogVersion(CatalogVersion value)
      Generated method - Setter of the PriceRow.catalogVersion attribute.
      Parameters:
      value - the catalogVersion
    • getChannel

      public EnumerationValue getChannel(SessionContext ctx)
      Generated method - Getter of the PriceRow.channel attribute.
      Returns:
      the channel
    • getChannel

      public EnumerationValue getChannel()
      Generated method - Getter of the PriceRow.channel attribute.
      Returns:
      the channel
    • setChannel

      public void setChannel(SessionContext ctx, EnumerationValue value)
      Generated method - Setter of the PriceRow.channel attribute.
      Parameters:
      value - the channel
    • setChannel

      public void setChannel(EnumerationValue value)
      Generated method - Setter of the PriceRow.channel attribute.
      Parameters:
      value - the channel
    • 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 PDTRow
      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
    • getCurrency

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

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

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

      public void setCurrency(Currency value)
      Generated method - Setter of the PriceRow.currency attribute.
      Parameters:
      value - the currency
    • isGiveAwayPrice

      public Boolean isGiveAwayPrice(SessionContext ctx)
      Generated method - Getter of the PriceRow.giveAwayPrice attribute.
      Returns:
      the giveAwayPrice
    • isGiveAwayPrice

      public Boolean isGiveAwayPrice()
      Generated method - Getter of the PriceRow.giveAwayPrice attribute.
      Returns:
      the giveAwayPrice
    • isGiveAwayPriceAsPrimitive

      public boolean isGiveAwayPriceAsPrimitive(SessionContext ctx)
      Generated method - Getter of the PriceRow.giveAwayPrice attribute.
      Returns:
      the giveAwayPrice
    • isGiveAwayPriceAsPrimitive

      public boolean isGiveAwayPriceAsPrimitive()
      Generated method - Getter of the PriceRow.giveAwayPrice attribute.
      Returns:
      the giveAwayPrice
    • setGiveAwayPrice

      public void setGiveAwayPrice(SessionContext ctx, Boolean value)
      Generated method - Setter of the PriceRow.giveAwayPrice attribute.
      Parameters:
      value - the giveAwayPrice
    • setGiveAwayPrice

      public void setGiveAwayPrice(Boolean value)
      Generated method - Setter of the PriceRow.giveAwayPrice attribute.
      Parameters:
      value - the giveAwayPrice
    • setGiveAwayPrice

      public void setGiveAwayPrice(SessionContext ctx, boolean value)
      Generated method - Setter of the PriceRow.giveAwayPrice attribute.
      Parameters:
      value - the giveAwayPrice
    • setGiveAwayPrice

      public void setGiveAwayPrice(boolean value)
      Generated method - Setter of the PriceRow.giveAwayPrice attribute.
      Parameters:
      value - the giveAwayPrice
    • getMatchValue

      public Integer getMatchValue(SessionContext ctx)
      Generated method - Getter of the PriceRow.matchValue attribute.
      Returns:
      the matchValue
    • getMatchValue

      public Integer getMatchValue()
      Generated method - Getter of the PriceRow.matchValue attribute.
      Returns:
      the matchValue
    • getMatchValueAsPrimitive

      public int getMatchValueAsPrimitive(SessionContext ctx)
      Generated method - Getter of the PriceRow.matchValue attribute.
      Returns:
      the matchValue
    • getMatchValueAsPrimitive

      public int getMatchValueAsPrimitive()
      Generated method - Getter of the PriceRow.matchValue attribute.
      Returns:
      the matchValue
    • setMatchValue

      public void setMatchValue(SessionContext ctx, Integer value)
      Generated method - Setter of the PriceRow.matchValue attribute.
      Parameters:
      value - the matchValue
    • setMatchValue

      public void setMatchValue(Integer value)
      Generated method - Setter of the PriceRow.matchValue attribute.
      Parameters:
      value - the matchValue
    • setMatchValue

      public void setMatchValue(SessionContext ctx, int value)
      Generated method - Setter of the PriceRow.matchValue attribute.
      Parameters:
      value - the matchValue
    • setMatchValue

      public void setMatchValue(int value)
      Generated method - Setter of the PriceRow.matchValue attribute.
      Parameters:
      value - the matchValue
    • getMinqtd

      public Long getMinqtd(SessionContext ctx)
      Generated method - Getter of the PriceRow.minqtd attribute.
      Returns:
      the minqtd
    • getMinqtd

      public Long getMinqtd()
      Generated method - Getter of the PriceRow.minqtd attribute.
      Returns:
      the minqtd
    • getMinqtdAsPrimitive

      public long getMinqtdAsPrimitive(SessionContext ctx)
      Generated method - Getter of the PriceRow.minqtd attribute.
      Returns:
      the minqtd
    • getMinqtdAsPrimitive

      public long getMinqtdAsPrimitive()
      Generated method - Getter of the PriceRow.minqtd attribute.
      Returns:
      the minqtd
    • setMinqtd

      public void setMinqtd(SessionContext ctx, Long value)
      Generated method - Setter of the PriceRow.minqtd attribute.
      Parameters:
      value - the minqtd
    • setMinqtd

      public void setMinqtd(Long value)
      Generated method - Setter of the PriceRow.minqtd attribute.
      Parameters:
      value - the minqtd
    • setMinqtd

      public void setMinqtd(SessionContext ctx, long value)
      Generated method - Setter of the PriceRow.minqtd attribute.
      Parameters:
      value - the minqtd
    • setMinqtd

      public void setMinqtd(long value)
      Generated method - Setter of the PriceRow.minqtd attribute.
      Parameters:
      value - the minqtd
    • isNet

      public Boolean isNet(SessionContext ctx)
      Generated method - Getter of the PriceRow.net attribute.
      Returns:
      the net
    • isNet

      public Boolean isNet()
      Generated method - Getter of the PriceRow.net attribute.
      Returns:
      the net
    • isNetAsPrimitive

      public boolean isNetAsPrimitive(SessionContext ctx)
      Generated method - Getter of the PriceRow.net attribute.
      Returns:
      the net
    • isNetAsPrimitive

      public boolean isNetAsPrimitive()
      Generated method - Getter of the PriceRow.net attribute.
      Returns:
      the net
    • setNet

      public void setNet(SessionContext ctx, Boolean value)
      Generated method - Setter of the PriceRow.net attribute.
      Parameters:
      value - the net
    • setNet

      public void setNet(Boolean value)
      Generated method - Setter of the PriceRow.net attribute.
      Parameters:
      value - the net
    • setNet

      public void setNet(SessionContext ctx, boolean value)
      Generated method - Setter of the PriceRow.net attribute.
      Parameters:
      value - the net
    • setNet

      public void setNet(boolean value)
      Generated method - Setter of the PriceRow.net attribute.
      Parameters:
      value - the net
    • getPrice

      public Double getPrice(SessionContext ctx)
      Generated method - Getter of the PriceRow.price attribute.
      Returns:
      the price
    • getPrice

      public Double getPrice()
      Generated method - Getter of the PriceRow.price attribute.
      Returns:
      the price
    • getPriceAsPrimitive

      public double getPriceAsPrimitive(SessionContext ctx)
      Generated method - Getter of the PriceRow.price attribute.
      Returns:
      the price
    • getPriceAsPrimitive

      public double getPriceAsPrimitive()
      Generated method - Getter of the PriceRow.price attribute.
      Returns:
      the price
    • setPrice

      public void setPrice(SessionContext ctx, Double value)
      Generated method - Setter of the PriceRow.price attribute.
      Parameters:
      value - the price
    • setPrice

      public void setPrice(Double value)
      Generated method - Setter of the PriceRow.price attribute.
      Parameters:
      value - the price
    • setPrice

      public void setPrice(SessionContext ctx, double value)
      Generated method - Setter of the PriceRow.price attribute.
      Parameters:
      value - the price
    • setPrice

      public void setPrice(double value)
      Generated method - Setter of the PriceRow.price attribute.
      Parameters:
      value - the price
    • getUnit

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

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

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

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

      public Integer getUnitFactor(SessionContext ctx)
      Generated method - Getter of the PriceRow.unitFactor attribute.
      Returns:
      the unitFactor
    • getUnitFactor

      public Integer getUnitFactor()
      Generated method - Getter of the PriceRow.unitFactor attribute.
      Returns:
      the unitFactor
    • getUnitFactorAsPrimitive

      public int getUnitFactorAsPrimitive(SessionContext ctx)
      Generated method - Getter of the PriceRow.unitFactor attribute.
      Returns:
      the unitFactor
    • getUnitFactorAsPrimitive

      public int getUnitFactorAsPrimitive()
      Generated method - Getter of the PriceRow.unitFactor attribute.
      Returns:
      the unitFactor
    • setUnitFactor

      public void setUnitFactor(SessionContext ctx, Integer value)
      Generated method - Setter of the PriceRow.unitFactor attribute.
      Parameters:
      value - the unitFactor
    • setUnitFactor

      public void setUnitFactor(Integer value)
      Generated method - Setter of the PriceRow.unitFactor attribute.
      Parameters:
      value - the unitFactor
    • setUnitFactor

      public void setUnitFactor(SessionContext ctx, int value)
      Generated method - Setter of the PriceRow.unitFactor attribute.
      Parameters:
      value - the unitFactor
    • setUnitFactor

      public void setUnitFactor(int value)
      Generated method - Setter of the PriceRow.unitFactor attribute.
      Parameters:
      value - the unitFactor