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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionde.hybris.platform.servicelayer.search.SearchResult<ProductModel>findCommerceProductsByCategory(CategoryModel category, int start, int count) Returns for the givenCategoryModeland all sub categories all foundCommerceAncillaryProductModels.Methods inherited from class de.hybris.platform.servicelayer.internal.dao.DefaultGenericDao
find, find, find, find, find, getFlexibleSearchService, setFlexibleSearchService
-
Constructor Details
-
DefaultShoppingProductDao
-
-
Method Details
-
findCommerceProductsByCategory
public de.hybris.platform.servicelayer.search.SearchResult<ProductModel> findCommerceProductsByCategory(CategoryModel category, int start, int count) Description copied from interface:ShoppingProductDaoReturns for the givenCategoryModeland all sub categories all foundCommerceAncillaryProductModels.- Specified by:
findCommerceProductsByCategoryin interfaceShoppingProductDao- Parameters:
category- the (root) category in which the search for the products startsstart- 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
SearchResultwith the found results. A SearchResult is used for the paging (start,count) of the elements.
-