public interface StockLevelDao extends Dao
StockLevelModel DAO.| Modifier and Type | Method and Description |
|---|---|
Collection<StockLevelModel> |
findAllStockLevels(String productCode)
Finds the stock levels of the specified product from all warehouses.
|
StockLevelModel |
findStockLevel(String productCode,
WarehouseModel warehouse)
Finds the stock level of the specified product at the specified warehouse.
|
Collection<StockLevelModel> |
findStockLevels(String productCode,
Collection<WarehouseModel> warehouses)
Finds all stock levels of the specified product in the specified warehouses.
|
Collection<StockLevelModel> |
findStockLevels(String productCode,
Collection<WarehouseModel> warehouses,
int preOrderQuantity) |
Integer |
getAvailableQuantity(WarehouseModel warehouse,
String productCode) |
Integer |
release(StockLevelModel stockLevel,
int amount)
Releases the stock level with the amount.
|
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(String productCode, WarehouseModel warehouse)
productCode - the product codewarehouse - warehouse of the productIllegalArgumentException - if either productCode or warehouse is nullCollection<StockLevelModel> findAllStockLevels(String productCode)
productCode - the product codeIllegalArgumentException - if productCode is nullCollection<StockLevelModel> findStockLevels(String productCode, Collection<WarehouseModel> warehouses)
productCode - the product codewarehouses - the warehousesIllegalArgumentException - if either productCode or warehouses is nullCollection<StockLevelModel> findStockLevels(String productCode, Collection<WarehouseModel> warehouses, int preOrderQuantity)
Integer getAvailableQuantity(WarehouseModel warehouse, String productCode)
Integer reserve(StockLevelModel stockLevel, int amount)
stockLevel - the stock level to be reservedamount - the amount of the reservationInteger 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 © 2017 SAP SE. All Rights Reserved.