public interface StockLevelDao extends Dao
StockLevelModel DAO.| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<StockLevelModel> |
findAllStockLevels(java.lang.String productCode)
Finds the stock levels of the specified product from all warehouses.
|
StockLevelModel |
findStockLevel(java.lang.String productCode,
WarehouseModel warehouse)
Finds the stock level of the specified product at the specified warehouse.
|
java.util.Collection<StockLevelModel> |
findStockLevels(java.lang.String productCode,
java.util.Collection<WarehouseModel> warehouses)
Finds all stock levels of the specified product in the specified warehouses.
|
java.util.Collection<StockLevelModel> |
findStockLevels(java.lang.String productCode,
java.util.Collection<WarehouseModel> warehouses,
int preOrderQuantity) |
java.lang.Integer |
getAvailableQuantity(WarehouseModel warehouse,
java.lang.String productCode) |
java.lang.Integer |
release(StockLevelModel stockLevel,
int amount)
Releases the stock level with the amount.
|
java.lang.Integer |
reserve(StockLevelModel stockLevel,
int amount)
Reserves the stock level with the amount.
|
void |
updateActualAmount(StockLevelModel stockLevel,
int actualAmount)
Updates the actual stock level with the actual amount.
|
StockLevelModel findStockLevel(java.lang.String productCode, WarehouseModel warehouse)
productCode - the product codewarehouse - warehouse of the productjava.lang.IllegalArgumentException - if either productCode or warehouse is nulljava.util.Collection<StockLevelModel> findAllStockLevels(java.lang.String productCode)
productCode - the product codejava.lang.IllegalArgumentException - if productCode is nulljava.util.Collection<StockLevelModel> findStockLevels(java.lang.String productCode, java.util.Collection<WarehouseModel> warehouses)
productCode - the product codewarehouses - the warehousesjava.lang.IllegalArgumentException - if either productCode or warehouses is nulljava.util.Collection<StockLevelModel> findStockLevels(java.lang.String productCode, java.util.Collection<WarehouseModel> warehouses, int preOrderQuantity)
java.lang.Integer getAvailableQuantity(WarehouseModel warehouse, java.lang.String productCode)
java.lang.Integer reserve(StockLevelModel stockLevel, int amount)
stockLevel - the stock level to be reservedamount - the amount of the reservationjava.lang.Integer release(StockLevelModel stockLevel, int amount)
stockLevel - the stock level to be releasedamount - the amount of the releasevoid updateActualAmount(StockLevelModel stockLevel, int actualAmount)
stockLevel - the stock level to be updatedactualAmount - the actual amount of the stock levelCopyright © 2018 SAP SE. All Rights Reserved.