public class DefaultStockLevelDao extends AbstractItemDao implements StockLevelDao
StockLevelDao.flexibleSearchService, modelService| Constructor and Description |
|---|
DefaultStockLevelDao() |
| 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 |
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(java.lang.String productCode, WarehouseModel warehouse)
StockLevelDaofindStockLevel in interface StockLevelDaoproductCode - the product codewarehouse - warehouse of the productpublic java.util.Collection<StockLevelModel> findAllStockLevels(java.lang.String productCode)
StockLevelDaofindAllStockLevels in interface StockLevelDaoproductCode - the product codepublic java.util.Collection<StockLevelModel> findStockLevels(java.lang.String productCode, java.util.Collection<WarehouseModel> warehouses)
StockLevelDaofindStockLevels in interface StockLevelDaoproductCode - the product codewarehouses - the warehousespublic java.util.Collection<StockLevelModel> findStockLevels(java.lang.String productCode, java.util.Collection<WarehouseModel> warehouses, int preOrderQuantity)
findStockLevels in interface StockLevelDaopublic java.lang.Integer getAvailableQuantity(WarehouseModel warehouse, java.lang.String productCode)
getAvailableQuantity in interface StockLevelDaopublic java.lang.Integer reserve(StockLevelModel stockLevel, int amount)
StockLevelDaoreserve in interface StockLevelDaostockLevel - the stock level to be reservedamount - the amount of the reservationpublic java.lang.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 © 2018 SAP SE. All Rights Reserved.