Class DefaultAvailableToPromiseDao
java.lang.Object
de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
de.hybris.platform.warehousing.atp.dao.impl.DefaultAvailableToPromiseDao
- All Implemented Interfaces:
Dao,AvailableToPromiseDao
Default implementation of the
AvailableToPromiseDao-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected static final StringFields inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
flexibleSearchService, modelService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the allocated quantity of a certain product for a collection of stock levelsgetAvailabilityForStockLevels(Map<String, Object> params) Get the quantity in stock of a certain product for a collection of stock levels (excluding availability in the external warehouses)Get the cancelled quantity of a certain product for a collection of stock levelsgetIncreaseQuantityForStockLevels(Map<String, Object> params) Get the Increased quantity of a certain product for a collection of stock levelsgetReservedQuantityForStockLevels(Map<String, Object> params) Get the reserved quantity of a certain product for a collection of stock levelsGet the Shrinkage quantity of a certain product for a collection of stock levelsgetWastageQuantityForStockLevels(Map<String, Object> params) Get the Wastage quantity of a certain product for a collection of stock levelsprotected LongRuns an aggregation query that returns an instance ofLong.Methods inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
getAllSources, getFlexibleSearchService, getModelService, getSource, load, loadAll, search, search, searchUnique, setFlexibleSearchService, setModelService
-
Field Details
-
STOCK_LEVELS
- See Also:
-
STOCK_LEVELS_RETURNED
- See Also:
-
STOCK_LEVELS_EXTERNAL
- See Also:
-
-
Constructor Details
-
DefaultAvailableToPromiseDao
public DefaultAvailableToPromiseDao()
-
-
Method Details
-
getAvailabilityForStockLevels
Description copied from interface:AvailableToPromiseDaoGet the quantity in stock of a certain product for a collection of stock levels (excluding availability in the external warehouses)- Specified by:
getAvailabilityForStockLevelsin interfaceAvailableToPromiseDao- Parameters:
params- the parameters required to perform the search- Returns:
- the quantity of product in stock
-
getAllocationQuantityForStockLevels
Description copied from interface:AvailableToPromiseDaoGet the allocated quantity of a certain product for a collection of stock levels- Specified by:
getAllocationQuantityForStockLevelsin interfaceAvailableToPromiseDao- Parameters:
params- the parameters required to perform the search- Returns:
- the quantity of product allocated
-
getCancellationQuantityForStockLevels
Description copied from interface:AvailableToPromiseDaoGet the cancelled quantity of a certain product for a collection of stock levels- Specified by:
getCancellationQuantityForStockLevelsin interfaceAvailableToPromiseDao- Parameters:
params- the parameters required to perform the search- Returns:
- the quantity of product cancelled
-
getReservedQuantityForStockLevels
Description copied from interface:AvailableToPromiseDaoGet the reserved quantity of a certain product for a collection of stock levels- Specified by:
getReservedQuantityForStockLevelsin interfaceAvailableToPromiseDao- Parameters:
params- the parameters required to perform the search- Returns:
- the quantity of product in reserve
-
getShrinkageQuantityForStockLevels
Description copied from interface:AvailableToPromiseDaoGet the Shrinkage quantity of a certain product for a collection of stock levels- Specified by:
getShrinkageQuantityForStockLevelsin interfaceAvailableToPromiseDao- Parameters:
params- the parameters required to perform the search- Returns:
- the quantity of shrinkage product that have shrinkage event
-
getWastageQuantityForStockLevels
Description copied from interface:AvailableToPromiseDaoGet the Wastage quantity of a certain product for a collection of stock levels- Specified by:
getWastageQuantityForStockLevelsin interfaceAvailableToPromiseDao- Parameters:
params- the parameters required to perform the search- Returns:
- the quantity of Wastage product that have Wastage event
-
getIncreaseQuantityForStockLevels
Description copied from interface:AvailableToPromiseDaoGet the Increased quantity of a certain product for a collection of stock levels- Specified by:
getIncreaseQuantityForStockLevelsin interfaceAvailableToPromiseDao- Parameters:
params- the parameters required to perform the search- Returns:
- the quantity of added product that have increase event
-
returnAggregateQuantity
Runs an aggregation query that returns an instance ofLong. Never null.- Parameters:
queryString- Query to runparams- Parameters to apply to the query- Returns:
- The aggregation result
-