public class DefaultStockLevelDao extends AbstractItemDao implements StockLevelDao
StockLevelDao.flexibleSearchService, modelService| Constructor and Description |
|---|
DefaultStockLevelDao() |
| 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 |
setJdbcTemplate(JdbcTemplate jdbcTemplate) |
void |
setTransactionTemplate(TransactionTemplate transactionTemplate) |
void |
setTypeService(TypeService typeService) |
void |
updateActualAmount(StockLevelModel stockLevel,
int actualAmount)
Updates the actual stock level with the actual amount.
|
getAllSources, getFlexibleSearchService, getModelService, getSource, load, loadAll, search, search, searchUnique, setFlexibleSearchService, setModelServicepublic StockLevelModel findStockLevel(String productCode, WarehouseModel warehouse)
StockLevelDaofindStockLevel in interface StockLevelDaoproductCode - the product codewarehouse - warehouse of the productpublic Collection<StockLevelModel> findAllStockLevels(String productCode)
StockLevelDaofindAllStockLevels in interface StockLevelDaoproductCode - the product codepublic Collection<StockLevelModel> findStockLevels(String productCode, Collection<WarehouseModel> warehouses)
StockLevelDaofindStockLevels in interface StockLevelDaoproductCode - the product codewarehouses - the warehousespublic Collection<StockLevelModel> findStockLevels(String productCode, Collection<WarehouseModel> warehouses, int preOrderQuantity)
findStockLevels in interface StockLevelDaopublic Integer getAvailableQuantity(WarehouseModel warehouse, String productCode)
getAvailableQuantity in interface StockLevelDaopublic Integer reserve(StockLevelModel stockLevel, int amount)
StockLevelDaoreserve in interface StockLevelDaostockLevel - the stock level to be reservedamount - the amount of the reservationpublic Integer release(StockLevelModel stockLevel, int amount)
StockLevelDaorelease in interface StockLevelDaostockLevel - the stock level to be releasedamount - the amount of the releasepublic void updateActualAmount(StockLevelModel stockLevel, int actualAmount)
StockLevelDaoupdateActualAmount in interface StockLevelDaostockLevel - the stock level to be updatedactualAmount - the actual amount of the stock levelpublic void setTypeService(TypeService typeService)
public void setTransactionTemplate(TransactionTemplate transactionTemplate)
public void setJdbcTemplate(JdbcTemplate jdbcTemplate)
Copyright © 2017 SAP SE. All Rights Reserved.