Class GeneratedStockLevel

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

public abstract class GeneratedStockLevel extends GenericItem
Generated class for type StockLevel.
See Also:
  • Field Details

    • PRODUCT

      public static final String PRODUCT
      Qualifier of the StockLevel.product attribute
      See Also:
    • AVAILABLE

      public static final String AVAILABLE
      Qualifier of the StockLevel.available attribute
      See Also:
    • RELEASEDATE

      public static final String RELEASEDATE
      Qualifier of the StockLevel.releaseDate attribute
      See Also:
    • NEXTDELIVERYTIME

      public static final String NEXTDELIVERYTIME
      Qualifier of the StockLevel.nextDeliveryTime attribute
      See Also:
    • PRODUCTCODE

      public static final String PRODUCTCODE
      Qualifier of the StockLevel.productCode attribute
      See Also:
    • RESERVED

      public static final String RESERVED
      Qualifier of the StockLevel.reserved attribute
      See Also:
    • OVERSELLING

      public static final String OVERSELLING
      Qualifier of the StockLevel.overSelling attribute
      See Also:
    • PREORDER

      public static final String PREORDER
      Qualifier of the StockLevel.preOrder attribute
      See Also:
    • MAXPREORDER

      public static final String MAXPREORDER
      Qualifier of the StockLevel.maxPreOrder attribute
      See Also:
    • TREATNEGATIVEASZERO

      public static final String TREATNEGATIVEASZERO
      Qualifier of the StockLevel.treatNegativeAsZero attribute
      See Also:
    • INSTOCKSTATUS

      public static final String INSTOCKSTATUS
      Qualifier of the StockLevel.inStockStatus attribute
      See Also:
    • MAXSTOCKLEVELHISTORYCOUNT

      public static final String MAXSTOCKLEVELHISTORYCOUNT
      Qualifier of the StockLevel.maxStockLevelHistoryCount attribute
      See Also:
    • PRODUCTS

      public static final String PRODUCTS
      Qualifier of the StockLevel.products attribute
      See Also:
    • STOCKLEVELPRODUCTRELATION_SRC_ORDERED

      protected static String STOCKLEVELPRODUCTRELATION_SRC_ORDERED
      Relation ordering override parameter constants for StockLevelProductRelation from ((basecommerce))
    • STOCKLEVELPRODUCTRELATION_TGT_ORDERED

      protected static String STOCKLEVELPRODUCTRELATION_TGT_ORDERED
    • STOCKLEVELPRODUCTRELATION_MARKMODIFIED

      protected static String STOCKLEVELPRODUCTRELATION_MARKMODIFIED
      Relation disable markmodifed parameter constants for StockLevelProductRelation from ((basecommerce))
    • WAREHOUSE

      public static final String WAREHOUSE
      Qualifier of the StockLevel.warehouse attribute
      See Also:
    • STOCKLEVELHISTORYENTRIES

      public static final String STOCKLEVELHISTORYENTRIES
      Qualifier of the StockLevel.stockLevelHistoryEntries attribute
      See Also:
    • WAREHOUSEHANDLER

      protected static final BidirectionalOneToManyHandler<GeneratedStockLevel> WAREHOUSEHANDLER
      BidirectionalOneToManyHandler for handling 1:n WAREHOUSE's relation attributes from 'one' side.
    • STOCKLEVELHISTORYENTRIESHANDLER

      protected static final OneToManyHandler<StockLevelHistoryEntry> STOCKLEVELHISTORYENTRIESHANDLER
      OneToManyHandler for handling 1:n STOCKLEVELHISTORYENTRIES's relation attributes from 'many' side.
    • DEFAULT_INITIAL_ATTRIBUTES

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

    • GeneratedStockLevel

      public GeneratedStockLevel()
  • Method Details

    • getDefaultAttributeModes

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

      public Integer getAvailable(SessionContext ctx)
      Generated method - Getter of the StockLevel.available attribute.
      Returns:
      the available
    • getAvailable

      public Integer getAvailable()
      Generated method - Getter of the StockLevel.available attribute.
      Returns:
      the available
    • getAvailableAsPrimitive

      public int getAvailableAsPrimitive(SessionContext ctx)
      Generated method - Getter of the StockLevel.available attribute.
      Returns:
      the available
    • getAvailableAsPrimitive

      public int getAvailableAsPrimitive()
      Generated method - Getter of the StockLevel.available attribute.
      Returns:
      the available
    • setAvailable

      public void setAvailable(SessionContext ctx, Integer value)
      Generated method - Setter of the StockLevel.available attribute.
      Parameters:
      value - the available
    • setAvailable

      public void setAvailable(Integer value)
      Generated method - Setter of the StockLevel.available attribute.
      Parameters:
      value - the available
    • setAvailable

      public void setAvailable(SessionContext ctx, int value)
      Generated method - Setter of the StockLevel.available attribute.
      Parameters:
      value - the available
    • setAvailable

      public void setAvailable(int value)
      Generated method - Setter of the StockLevel.available attribute.
      Parameters:
      value - the available
    • 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
    • getInStockStatus

      public EnumerationValue getInStockStatus(SessionContext ctx)
      Generated method - Getter of the StockLevel.inStockStatus attribute.
      Returns:
      the inStockStatus
    • getInStockStatus

      public EnumerationValue getInStockStatus()
      Generated method - Getter of the StockLevel.inStockStatus attribute.
      Returns:
      the inStockStatus
    • setInStockStatus

      public void setInStockStatus(SessionContext ctx, EnumerationValue value)
      Generated method - Setter of the StockLevel.inStockStatus attribute.
      Parameters:
      value - the inStockStatus
    • setInStockStatus

      public void setInStockStatus(EnumerationValue value)
      Generated method - Setter of the StockLevel.inStockStatus attribute.
      Parameters:
      value - the inStockStatus
    • 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
    • getMaxPreOrder

      public Integer getMaxPreOrder(SessionContext ctx)
      Generated method - Getter of the StockLevel.maxPreOrder attribute.
      Returns:
      the maxPreOrder
    • getMaxPreOrder

      public Integer getMaxPreOrder()
      Generated method - Getter of the StockLevel.maxPreOrder attribute.
      Returns:
      the maxPreOrder
    • getMaxPreOrderAsPrimitive

      public int getMaxPreOrderAsPrimitive(SessionContext ctx)
      Generated method - Getter of the StockLevel.maxPreOrder attribute.
      Returns:
      the maxPreOrder
    • getMaxPreOrderAsPrimitive

      public int getMaxPreOrderAsPrimitive()
      Generated method - Getter of the StockLevel.maxPreOrder attribute.
      Returns:
      the maxPreOrder
    • setMaxPreOrder

      public void setMaxPreOrder(SessionContext ctx, Integer value)
      Generated method - Setter of the StockLevel.maxPreOrder attribute.
      Parameters:
      value - the maxPreOrder
    • setMaxPreOrder

      public void setMaxPreOrder(Integer value)
      Generated method - Setter of the StockLevel.maxPreOrder attribute.
      Parameters:
      value - the maxPreOrder
    • setMaxPreOrder

      public void setMaxPreOrder(SessionContext ctx, int value)
      Generated method - Setter of the StockLevel.maxPreOrder attribute.
      Parameters:
      value - the maxPreOrder
    • setMaxPreOrder

      public void setMaxPreOrder(int value)
      Generated method - Setter of the StockLevel.maxPreOrder attribute.
      Parameters:
      value - the maxPreOrder
    • getMaxStockLevelHistoryCount

      public Integer getMaxStockLevelHistoryCount(SessionContext ctx)
      Generated method - Getter of the StockLevel.maxStockLevelHistoryCount attribute.
      Returns:
      the maxStockLevelHistoryCount - size of the StockLevelHistoyEntry, negative values for unlimited
    • getMaxStockLevelHistoryCount

      public Integer getMaxStockLevelHistoryCount()
      Generated method - Getter of the StockLevel.maxStockLevelHistoryCount attribute.
      Returns:
      the maxStockLevelHistoryCount - size of the StockLevelHistoyEntry, negative values for unlimited
    • getMaxStockLevelHistoryCountAsPrimitive

      public int getMaxStockLevelHistoryCountAsPrimitive(SessionContext ctx)
      Generated method - Getter of the StockLevel.maxStockLevelHistoryCount attribute.
      Returns:
      the maxStockLevelHistoryCount - size of the StockLevelHistoyEntry, negative values for unlimited
    • getMaxStockLevelHistoryCountAsPrimitive

      public int getMaxStockLevelHistoryCountAsPrimitive()
      Generated method - Getter of the StockLevel.maxStockLevelHistoryCount attribute.
      Returns:
      the maxStockLevelHistoryCount - size of the StockLevelHistoyEntry, negative values for unlimited
    • setMaxStockLevelHistoryCount

      public void setMaxStockLevelHistoryCount(SessionContext ctx, Integer value)
      Generated method - Setter of the StockLevel.maxStockLevelHistoryCount attribute.
      Parameters:
      value - the maxStockLevelHistoryCount - size of the StockLevelHistoyEntry, negative values for unlimited
    • setMaxStockLevelHistoryCount

      public void setMaxStockLevelHistoryCount(Integer value)
      Generated method - Setter of the StockLevel.maxStockLevelHistoryCount attribute.
      Parameters:
      value - the maxStockLevelHistoryCount - size of the StockLevelHistoyEntry, negative values for unlimited
    • setMaxStockLevelHistoryCount

      public void setMaxStockLevelHistoryCount(SessionContext ctx, int value)
      Generated method - Setter of the StockLevel.maxStockLevelHistoryCount attribute.
      Parameters:
      value - the maxStockLevelHistoryCount - size of the StockLevelHistoyEntry, negative values for unlimited
    • setMaxStockLevelHistoryCount

      public void setMaxStockLevelHistoryCount(int value)
      Generated method - Setter of the StockLevel.maxStockLevelHistoryCount attribute.
      Parameters:
      value - the maxStockLevelHistoryCount - size of the StockLevelHistoyEntry, negative values for unlimited
    • getNextDeliveryTime

      public Date getNextDeliveryTime(SessionContext ctx)
      Generated method - Getter of the StockLevel.nextDeliveryTime attribute.
      Returns:
      the nextDeliveryTime
    • getNextDeliveryTime

      public Date getNextDeliveryTime()
      Generated method - Getter of the StockLevel.nextDeliveryTime attribute.
      Returns:
      the nextDeliveryTime
    • setNextDeliveryTime

      public void setNextDeliveryTime(SessionContext ctx, Date value)
      Generated method - Setter of the StockLevel.nextDeliveryTime attribute.
      Parameters:
      value - the nextDeliveryTime
    • setNextDeliveryTime

      public void setNextDeliveryTime(Date value)
      Generated method - Setter of the StockLevel.nextDeliveryTime attribute.
      Parameters:
      value - the nextDeliveryTime
    • getOverSelling

      public Integer getOverSelling(SessionContext ctx)
      Generated method - Getter of the StockLevel.overSelling attribute.
      Returns:
      the overSelling
    • getOverSelling

      public Integer getOverSelling()
      Generated method - Getter of the StockLevel.overSelling attribute.
      Returns:
      the overSelling
    • getOverSellingAsPrimitive

      public int getOverSellingAsPrimitive(SessionContext ctx)
      Generated method - Getter of the StockLevel.overSelling attribute.
      Returns:
      the overSelling
    • getOverSellingAsPrimitive

      public int getOverSellingAsPrimitive()
      Generated method - Getter of the StockLevel.overSelling attribute.
      Returns:
      the overSelling
    • setOverSelling

      public void setOverSelling(SessionContext ctx, Integer value)
      Generated method - Setter of the StockLevel.overSelling attribute.
      Parameters:
      value - the overSelling
    • setOverSelling

      public void setOverSelling(Integer value)
      Generated method - Setter of the StockLevel.overSelling attribute.
      Parameters:
      value - the overSelling
    • setOverSelling

      public void setOverSelling(SessionContext ctx, int value)
      Generated method - Setter of the StockLevel.overSelling attribute.
      Parameters:
      value - the overSelling
    • setOverSelling

      public void setOverSelling(int value)
      Generated method - Setter of the StockLevel.overSelling attribute.
      Parameters:
      value - the overSelling
    • getPreOrder

      public Integer getPreOrder(SessionContext ctx)
      Generated method - Getter of the StockLevel.preOrder attribute.
      Returns:
      the preOrder
    • getPreOrder

      public Integer getPreOrder()
      Generated method - Getter of the StockLevel.preOrder attribute.
      Returns:
      the preOrder
    • getPreOrderAsPrimitive

      public int getPreOrderAsPrimitive(SessionContext ctx)
      Generated method - Getter of the StockLevel.preOrder attribute.
      Returns:
      the preOrder
    • getPreOrderAsPrimitive

      public int getPreOrderAsPrimitive()
      Generated method - Getter of the StockLevel.preOrder attribute.
      Returns:
      the preOrder
    • setPreOrder

      public void setPreOrder(SessionContext ctx, Integer value)
      Generated method - Setter of the StockLevel.preOrder attribute.
      Parameters:
      value - the preOrder
    • setPreOrder

      public void setPreOrder(Integer value)
      Generated method - Setter of the StockLevel.preOrder attribute.
      Parameters:
      value - the preOrder
    • setPreOrder

      public void setPreOrder(SessionContext ctx, int value)
      Generated method - Setter of the StockLevel.preOrder attribute.
      Parameters:
      value - the preOrder
    • setPreOrder

      public void setPreOrder(int value)
      Generated method - Setter of the StockLevel.preOrder attribute.
      Parameters:
      value - the preOrder
    • getProduct

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

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

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

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

      public String getProductCode(SessionContext ctx)
      Generated method - Getter of the StockLevel.productCode attribute.
      Returns:
      the productCode
    • getProductCode

      public String getProductCode()
      Generated method - Getter of the StockLevel.productCode attribute.
      Returns:
      the productCode
    • setProductCode

      public void setProductCode(SessionContext ctx, String value)
      Generated method - Setter of the StockLevel.productCode attribute.
      Parameters:
      value - the productCode
    • setProductCode

      public void setProductCode(String value)
      Generated method - Setter of the StockLevel.productCode attribute.
      Parameters:
      value - the productCode
    • getProducts

      public Collection<Product> getProducts(SessionContext ctx)
      Generated method - Getter of the StockLevel.products attribute.
      Returns:
      the products
    • getProducts

      public Collection<Product> getProducts()
      Generated method - Getter of the StockLevel.products attribute.
      Returns:
      the products
    • getProductsCount

      public long getProductsCount(SessionContext ctx)
    • getProductsCount

      public long getProductsCount()
    • setProducts

      public void setProducts(SessionContext ctx, Collection<Product> value)
      Generated method - Setter of the StockLevel.products attribute.
      Parameters:
      value - the products
    • setProducts

      public void setProducts(Collection<Product> value)
      Generated method - Setter of the StockLevel.products attribute.
      Parameters:
      value - the products
    • addToProducts

      public void addToProducts(SessionContext ctx, Product value)
      Generated method - Adds value to products.
      Parameters:
      value - the item to add to products
    • addToProducts

      public void addToProducts(Product value)
      Generated method - Adds value to products.
      Parameters:
      value - the item to add to products
    • removeFromProducts

      public void removeFromProducts(SessionContext ctx, Product value)
      Generated method - Removes value from products.
      Parameters:
      value - the item to remove from products
    • removeFromProducts

      public void removeFromProducts(Product value)
      Generated method - Removes value from products.
      Parameters:
      value - the item to remove from products
    • getReleaseDate

      public Date getReleaseDate(SessionContext ctx)
      Generated method - Getter of the StockLevel.releaseDate attribute.
      Returns:
      the releaseDate
    • getReleaseDate

      public Date getReleaseDate()
      Generated method - Getter of the StockLevel.releaseDate attribute.
      Returns:
      the releaseDate
    • setReleaseDate

      public void setReleaseDate(SessionContext ctx, Date value)
      Generated method - Setter of the StockLevel.releaseDate attribute.
      Parameters:
      value - the releaseDate
    • setReleaseDate

      public void setReleaseDate(Date value)
      Generated method - Setter of the StockLevel.releaseDate attribute.
      Parameters:
      value - the releaseDate
    • getReserved

      public Integer getReserved(SessionContext ctx)
      Generated method - Getter of the StockLevel.reserved attribute.
      Returns:
      the reserved
    • getReserved

      public Integer getReserved()
      Generated method - Getter of the StockLevel.reserved attribute.
      Returns:
      the reserved
    • getReservedAsPrimitive

      public int getReservedAsPrimitive(SessionContext ctx)
      Generated method - Getter of the StockLevel.reserved attribute.
      Returns:
      the reserved
    • getReservedAsPrimitive

      public int getReservedAsPrimitive()
      Generated method - Getter of the StockLevel.reserved attribute.
      Returns:
      the reserved
    • setReserved

      public void setReserved(SessionContext ctx, Integer value)
      Generated method - Setter of the StockLevel.reserved attribute.
      Parameters:
      value - the reserved
    • setReserved

      public void setReserved(Integer value)
      Generated method - Setter of the StockLevel.reserved attribute.
      Parameters:
      value - the reserved
    • setReserved

      public void setReserved(SessionContext ctx, int value)
      Generated method - Setter of the StockLevel.reserved attribute.
      Parameters:
      value - the reserved
    • setReserved

      public void setReserved(int value)
      Generated method - Setter of the StockLevel.reserved attribute.
      Parameters:
      value - the reserved
    • getStockLevelHistoryEntries

      public List<StockLevelHistoryEntry> getStockLevelHistoryEntries(SessionContext ctx)
      Generated method - Getter of the StockLevel.stockLevelHistoryEntries attribute.
      Returns:
      the stockLevelHistoryEntries
    • getStockLevelHistoryEntries

      public List<StockLevelHistoryEntry> getStockLevelHistoryEntries()
      Generated method - Getter of the StockLevel.stockLevelHistoryEntries attribute.
      Returns:
      the stockLevelHistoryEntries
    • setStockLevelHistoryEntries

      public void setStockLevelHistoryEntries(SessionContext ctx, List<StockLevelHistoryEntry> value)
      Generated method - Setter of the StockLevel.stockLevelHistoryEntries attribute.
      Parameters:
      value - the stockLevelHistoryEntries
    • setStockLevelHistoryEntries

      public void setStockLevelHistoryEntries(List<StockLevelHistoryEntry> value)
      Generated method - Setter of the StockLevel.stockLevelHistoryEntries attribute.
      Parameters:
      value - the stockLevelHistoryEntries
    • addToStockLevelHistoryEntries

      public void addToStockLevelHistoryEntries(SessionContext ctx, StockLevelHistoryEntry value)
      Generated method - Adds value to stockLevelHistoryEntries.
      Parameters:
      value - the item to add to stockLevelHistoryEntries
    • addToStockLevelHistoryEntries

      public void addToStockLevelHistoryEntries(StockLevelHistoryEntry value)
      Generated method - Adds value to stockLevelHistoryEntries.
      Parameters:
      value - the item to add to stockLevelHistoryEntries
    • removeFromStockLevelHistoryEntries

      public void removeFromStockLevelHistoryEntries(SessionContext ctx, StockLevelHistoryEntry value)
      Generated method - Removes value from stockLevelHistoryEntries.
      Parameters:
      value - the item to remove from stockLevelHistoryEntries
    • removeFromStockLevelHistoryEntries

      public void removeFromStockLevelHistoryEntries(StockLevelHistoryEntry value)
      Generated method - Removes value from stockLevelHistoryEntries.
      Parameters:
      value - the item to remove from stockLevelHistoryEntries
    • isTreatNegativeAsZero

      public Boolean isTreatNegativeAsZero(SessionContext ctx)
      Generated method - Getter of the StockLevel.treatNegativeAsZero attribute.
      Returns:
      the treatNegativeAsZero
    • isTreatNegativeAsZero

      public Boolean isTreatNegativeAsZero()
      Generated method - Getter of the StockLevel.treatNegativeAsZero attribute.
      Returns:
      the treatNegativeAsZero
    • isTreatNegativeAsZeroAsPrimitive

      public boolean isTreatNegativeAsZeroAsPrimitive(SessionContext ctx)
      Generated method - Getter of the StockLevel.treatNegativeAsZero attribute.
      Returns:
      the treatNegativeAsZero
    • isTreatNegativeAsZeroAsPrimitive

      public boolean isTreatNegativeAsZeroAsPrimitive()
      Generated method - Getter of the StockLevel.treatNegativeAsZero attribute.
      Returns:
      the treatNegativeAsZero
    • setTreatNegativeAsZero

      public void setTreatNegativeAsZero(SessionContext ctx, Boolean value)
      Generated method - Setter of the StockLevel.treatNegativeAsZero attribute.
      Parameters:
      value - the treatNegativeAsZero
    • setTreatNegativeAsZero

      public void setTreatNegativeAsZero(Boolean value)
      Generated method - Setter of the StockLevel.treatNegativeAsZero attribute.
      Parameters:
      value - the treatNegativeAsZero
    • setTreatNegativeAsZero

      public void setTreatNegativeAsZero(SessionContext ctx, boolean value)
      Generated method - Setter of the StockLevel.treatNegativeAsZero attribute.
      Parameters:
      value - the treatNegativeAsZero
    • setTreatNegativeAsZero

      public void setTreatNegativeAsZero(boolean value)
      Generated method - Setter of the StockLevel.treatNegativeAsZero attribute.
      Parameters:
      value - the treatNegativeAsZero
    • getWarehouse

      public Warehouse getWarehouse(SessionContext ctx)
      Generated method - Getter of the StockLevel.warehouse attribute.
      Returns:
      the warehouse
    • getWarehouse

      public Warehouse getWarehouse()
      Generated method - Getter of the StockLevel.warehouse attribute.
      Returns:
      the warehouse
    • setWarehouse

      protected void setWarehouse(SessionContext ctx, Warehouse value)
      Generated method - Setter of the StockLevel.warehouse attribute.
      Parameters:
      value - the warehouse
    • setWarehouse

      protected void setWarehouse(Warehouse value)
      Generated method - Setter of the StockLevel.warehouse attribute.
      Parameters:
      value - the warehouse