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
public class DefaultAvailableToPromiseDao extends AbstractItemDao implements AvailableToPromiseDao
Default implementation of theAvailableToPromiseDao
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringSTOCK_LEVELSprotected static java.lang.StringSTOCK_LEVELS_EXTERNALprotected static java.lang.StringSTOCK_LEVELS_RETURNED-
Fields inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
flexibleSearchService, modelService
-
-
Constructor Summary
Constructors Constructor Description DefaultAvailableToPromiseDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.LonggetAllocationQuantityForStockLevels(java.util.Map<java.lang.String,java.lang.Object> params)Get the allocated quantity of a certain product for a collection of stock levelsjava.lang.LonggetAvailabilityForStockLevels(java.util.Map<java.lang.String,java.lang.Object> params)Get the quantity in stock of a certain product for a collection of stock levels (excluding availability in the external warehouses)java.lang.LonggetCancellationQuantityForStockLevels(java.util.Map<java.lang.String,java.lang.Object> params)Get the cancelled quantity of a certain product for a collection of stock levelsjava.lang.LonggetIncreaseQuantityForStockLevels(java.util.Map<java.lang.String,java.lang.Object> params)Get the Increased quantity of a certain product for a collection of stock levelsjava.lang.LonggetReservedQuantityForStockLevels(java.util.Map<java.lang.String,java.lang.Object> params)Get the reserved quantity of a certain product for a collection of stock levelsjava.lang.LonggetShrinkageQuantityForStockLevels(java.util.Map<java.lang.String,java.lang.Object> params)Get the Shrinkage quantity of a certain product for a collection of stock levelsjava.lang.LonggetWastageQuantityForStockLevels(java.util.Map<java.lang.String,java.lang.Object> params)Get the Wastage quantity of a certain product for a collection of stock levelsprotected java.lang.LongreturnAggregateQuantity(java.lang.String queryString, java.util.Map<java.lang.String,java.lang.Object> params, java.lang.String key)Runs 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 Detail
-
STOCK_LEVELS
protected static final java.lang.String STOCK_LEVELS
- See Also:
- Constant Field Values
-
STOCK_LEVELS_RETURNED
protected static final java.lang.String STOCK_LEVELS_RETURNED
- See Also:
- Constant Field Values
-
STOCK_LEVELS_EXTERNAL
protected static final java.lang.String STOCK_LEVELS_EXTERNAL
- See Also:
- Constant Field Values
-
-
Method Detail
-
getAvailabilityForStockLevels
public java.lang.Long getAvailabilityForStockLevels(java.util.Map<java.lang.String,java.lang.Object> params)
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
public java.lang.Long getAllocationQuantityForStockLevels(java.util.Map<java.lang.String,java.lang.Object> params)
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
public java.lang.Long getCancellationQuantityForStockLevels(java.util.Map<java.lang.String,java.lang.Object> params)
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
public java.lang.Long getReservedQuantityForStockLevels(java.util.Map<java.lang.String,java.lang.Object> params)
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
public java.lang.Long getShrinkageQuantityForStockLevels(java.util.Map<java.lang.String,java.lang.Object> params)
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
public java.lang.Long getWastageQuantityForStockLevels(java.util.Map<java.lang.String,java.lang.Object> params)
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
public java.lang.Long getIncreaseQuantityForStockLevels(java.util.Map<java.lang.String,java.lang.Object> params)
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
protected java.lang.Long returnAggregateQuantity(java.lang.String queryString, java.util.Map<java.lang.String,java.lang.Object> params, java.lang.String key)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
-
-