Class DefaultShoppingProductDao

java.lang.Object
de.hybris.platform.servicelayer.internal.dao.DefaultGenericDao<CommerceAncillaryProductModel>
de.hybris.platform.shoppingservices.dao.impl.DefaultShoppingProductDao
All Implemented Interfaces:
de.hybris.platform.servicelayer.internal.dao.GenericDao<CommerceAncillaryProductModel>, ShoppingProductDao

public class DefaultShoppingProductDao extends de.hybris.platform.servicelayer.internal.dao.DefaultGenericDao<CommerceAncillaryProductModel> implements ShoppingProductDao
The Shopping extension of DefaultGenericDao class to get all the commerce ancillaries products by a specific category.
  • Constructor Details

    • DefaultShoppingProductDao

      public DefaultShoppingProductDao(String typecode)
  • Method Details

    • findCommerceProductsByCategory

      public de.hybris.platform.servicelayer.search.SearchResult<ProductModel> findCommerceProductsByCategory(CategoryModel category, int start, int count)
      Description copied from interface: ShoppingProductDao
      Returns for the given CategoryModel and all sub categories all found CommerceAncillaryProductModels.
      Specified by:
      findCommerceProductsByCategory in interface ShoppingProductDao
      Parameters:
      category - the (root) category in which the search for the products starts
      start - the start number of the search range. Set this value to 0 for getting all products.
      count - the number of elements in the search range. Set this value to -1 for getting all products.
      Returns:
      a SearchResult with the found results. A SearchResult is used for the paging (start,count) of the elements.