Class StockLevel

All Implemented Interfaces:
Serializable, Comparable

public class StockLevel extends GeneratedStockLevel
See Also:
  • Constructor Details

    • StockLevel

      public StockLevel()
  • Method Details

    • getProduct

      @Deprecated(since="ages", forRemoval=true) public Product getProduct(SessionContext ctx)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Since ages
      Getter of product code. use #getProductCode(String code), we will store the stock level not directly on Product, because we don't want to deal with the stages (versions) which a product can be part of.
      Specified by:
      getProduct in class GeneratedStockLevel
      Returns:
      the product
    • setProduct

      @Deprecated(since="ages", forRemoval=true) public void setProduct(SessionContext ctx, Product value)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Since ages
      Setter of product code. use #setProductCode(String code).
      We will store the stock level not directly on Product, because we don't want to deal with the stages (versions) which a product can be part of.
      Specified by:
      setProduct in class GeneratedStockLevel
      value - the product