public class DefaultProductDao extends DefaultGenericDao<ProductModel> implements ProductDao
ProductDao.| Constructor and Description |
|---|
DefaultProductDao(java.lang.String typecode) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Integer |
findAllProductsCountByCategory(CategoryModel category)
Counts all products of the specific
CategoryModel excluding double linked products. |
java.util.List<ProductModel> |
findOfflineProductsByCategory(CategoryModel category)
Returns all offline products that belong to the specified category.
|
java.util.List<ProductModel> |
findOnlineProductsByCategory(CategoryModel category)
Returns all online products that belong to the specified category.
|
java.util.List<ProductModel> |
findProducts(CategoryModel category,
boolean online) |
java.util.List<ProductModel> |
findProductsByCatalogVersion(CatalogVersionModel catalogVersion)
Returns for the given product
catalogVersion the ProductModel collection. |
SearchResult<ProductModel> |
findProductsByCategory(CategoryModel category,
int start,
int count)
Returns for the given
CategoryModel and all sub categories all found ProductModels. |
java.util.List<ProductModel> |
findProductsByCode(CatalogVersionModel catalogVersion,
java.lang.String code)
|
java.util.List<ProductModel> |
findProductsByCode(java.lang.String code)
Returns for the given product
code the ProductModel collection. |
java.lang.Integer |
findProductsCountByCategory(CategoryModel category)
Counts all products of the specific
CategoryModel |
find, find, find, find, find, getFlexibleSearchService, setFlexibleSearchServicepublic SearchResult<ProductModel> findProductsByCategory(CategoryModel category, int start, int count)
ProductDaoCategoryModel and all sub categories all found ProductModels.findProductsByCategory in interface ProductDaocategory - 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.SearchResult with the found results. A SearchResult is used for the paging (start,count) of the
elements.public java.util.List<ProductModel> findProducts(CategoryModel category, boolean online)
findProducts in interface ProductDaocategory - the category the returned products belong toonline - true for online products, or false for offline productspublic java.util.List<ProductModel> findProductsByCode(java.lang.String code)
ProductDaocode the ProductModel collection.findProductsByCode in interface ProductDaocode - the product codeProductModelpublic java.util.List<ProductModel> findProductsByCatalogVersion(CatalogVersionModel catalogVersion)
ProductDaocatalogVersion the ProductModel collection.findProductsByCatalogVersion in interface ProductDaocatalogVersion - the product catalogVersionProductModelpublic java.util.List<ProductModel> findProductsByCode(CatalogVersionModel catalogVersion, java.lang.String code)
ProductDaofindProductsByCode in interface ProductDaocatalogVersion - the catalog versioncode - the product codeProductModelpublic java.lang.Integer findAllProductsCountByCategory(CategoryModel category)
ProductDaoCategoryModel excluding double linked products. This includes all its
own products and products belonging to any sub category.findAllProductsCountByCategory in interface ProductDaopublic java.lang.Integer findProductsCountByCategory(CategoryModel category)
ProductDaoCategoryModelfindProductsCountByCategory in interface ProductDaopublic java.util.List<ProductModel> findOfflineProductsByCategory(CategoryModel category)
ProductDaofindOfflineProductsByCategory in interface ProductDaocategory - the category the returned products belong topublic java.util.List<ProductModel> findOnlineProductsByCategory(CategoryModel category)
ProductDaofindOnlineProductsByCategory in interface ProductDaocategory - the category the returned products belong toCopyright © 2018 SAP SE. All Rights Reserved.