Package de.hybris.platform.product.impl
Interface ProductDao
-
- All Superinterfaces:
Dao
- All Known Implementing Classes:
DefaultProductDao
@Deprecated(since="ages", forRemoval=true) public interface ProductDao extends DaoDeprecated, for removal: This API element is subject to removal in a future version.since ages - as of release 4.3, please useProductDaoTheProductModelDAO.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description SearchResult<ProductModel>findAllByCategory(CategoryModel category, int start, int count)Deprecated, for removal: This API element is subject to removal in a future version.since ages - as of release 4.3, please useProductDao.findProductsByCategory(CategoryModel, int, int)ProductModelfindProduct(CatalogVersionModel catalogVersion, java.lang.String code)Deprecated, for removal: This API element is subject to removal in a future version.since ages - as of release 4.3, please useProductDao.findProductsByCode(CatalogVersionModel, String)ProductModelfindProduct(java.lang.String code)Deprecated, for removal: This API element is subject to removal in a future version.since ages - as of release 4.3, please useProductDao.findProductsByCode(String)
-
-
-
Method Detail
-
findAllByCategory
@Deprecated(since="ages", forRemoval=true) SearchResult<ProductModel> findAllByCategory(CategoryModel category, int start, int count)Deprecated, for removal: This API element is subject to removal in a future version.since ages - as of release 4.3, please useProductDao.findProductsByCategory(CategoryModel, int, int)Returns for the given
CategoryModeland all sub categories all foundProductModels.- 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.
-
findProduct
@Deprecated(since="ages", forRemoval=true) ProductModel findProduct(java.lang.String code)Deprecated, for removal: This API element is subject to removal in a future version.since ages - as of release 4.3, please useProductDao.findProductsByCode(String)Returns for the given product
codetheProductModel.- Parameters:
code- the productcode- Returns:
- a
ProductModel - Throws:
java.lang.IllegalArgumentException- if the givencodeisnullUnknownIdentifierException- if noProductModelwith the givencodewas found.AmbiguousIdentifierException- if for the givencodemore than oneProductModelwas found.
-
findProduct
@Deprecated(since="ages", forRemoval=true) ProductModel findProduct(CatalogVersionModel catalogVersion, java.lang.String code)Deprecated, for removal: This API element is subject to removal in a future version.since ages - as of release 4.3, please useProductDao.findProductsByCode(CatalogVersionModel, String)Returns for the given product
codeand the givenCatalogVersionModeltheProductModel.- Parameters:
catalogVersion- the catalog versioncode- the product code- Returns:
- a
ProductModel - Throws:
java.lang.IllegalArgumentException- ofcatalogVersionorcodeisnullUnknownIdentifierException- if noProductModelwith the givencodeand with the givencatalogVersionwas found.AmbiguousIdentifierException- if for the givencodeant for the givencatalogVersionmore than oneProductModelwas found.
-
-