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 the AvailableToPromiseDao
  • Field Details

  • Constructor Details

    • DefaultAvailableToPromiseDao

      public DefaultAvailableToPromiseDao()
  • Method Details

    • getAvailabilityForStockLevels

      public Long getAvailabilityForStockLevels(Map<String,Object> params)
      Description copied from interface: AvailableToPromiseDao
      Get the quantity in stock of a certain product for a collection of stock levels (excluding availability in the external warehouses)
      Specified by:
      getAvailabilityForStockLevels in interface AvailableToPromiseDao
      Parameters:
      params - the parameters required to perform the search
      Returns:
      the quantity of product in stock
    • getAllocationQuantityForStockLevels

      public Long getAllocationQuantityForStockLevels(Map<String,Object> params)
      Description copied from interface: AvailableToPromiseDao
      Get the allocated quantity of a certain product for a collection of stock levels
      Specified by:
      getAllocationQuantityForStockLevels in interface AvailableToPromiseDao
      Parameters:
      params - the parameters required to perform the search
      Returns:
      the quantity of product allocated
    • getCancellationQuantityForStockLevels

      public Long getCancellationQuantityForStockLevels(Map<String,Object> params)
      Description copied from interface: AvailableToPromiseDao
      Get the cancelled quantity of a certain product for a collection of stock levels
      Specified by:
      getCancellationQuantityForStockLevels in interface AvailableToPromiseDao
      Parameters:
      params - the parameters required to perform the search
      Returns:
      the quantity of product cancelled
    • getReservedQuantityForStockLevels

      public Long getReservedQuantityForStockLevels(Map<String,Object> params)
      Description copied from interface: AvailableToPromiseDao
      Get the reserved quantity of a certain product for a collection of stock levels
      Specified by:
      getReservedQuantityForStockLevels in interface AvailableToPromiseDao
      Parameters:
      params - the parameters required to perform the search
      Returns:
      the quantity of product in reserve
    • getShrinkageQuantityForStockLevels

      public Long getShrinkageQuantityForStockLevels(Map<String,Object> params)
      Description copied from interface: AvailableToPromiseDao
      Get the Shrinkage quantity of a certain product for a collection of stock levels
      Specified by:
      getShrinkageQuantityForStockLevels in interface AvailableToPromiseDao
      Parameters:
      params - the parameters required to perform the search
      Returns:
      the quantity of shrinkage product that have shrinkage event
    • getWastageQuantityForStockLevels

      public Long getWastageQuantityForStockLevels(Map<String,Object> params)
      Description copied from interface: AvailableToPromiseDao
      Get the Wastage quantity of a certain product for a collection of stock levels
      Specified by:
      getWastageQuantityForStockLevels in interface AvailableToPromiseDao
      Parameters:
      params - the parameters required to perform the search
      Returns:
      the quantity of Wastage product that have Wastage event
    • getIncreaseQuantityForStockLevels

      public Long getIncreaseQuantityForStockLevels(Map<String,Object> params)
      Description copied from interface: AvailableToPromiseDao
      Get the Increased quantity of a certain product for a collection of stock levels
      Specified by:
      getIncreaseQuantityForStockLevels in interface AvailableToPromiseDao
      Parameters:
      params - the parameters required to perform the search
      Returns:
      the quantity of added product that have increase event
    • returnAggregateQuantity

      protected Long returnAggregateQuantity(String queryString, Map<String,Object> params, String key)
      Runs an aggregation query that returns an instance of Long. Never null.
      Parameters:
      queryString - Query to run
      params - Parameters to apply to the query
      Returns:
      The aggregation result