Package de.hybris.platform.product.impl
Interface ProductDao
- All Superinterfaces:
Dao
- All Known Implementing Classes:
DefaultProductDao
Deprecated, for removal: This API element is subject to removal in a future version.
The
ProductModel DAO.-
Method Summary
Modifier and TypeMethodDescriptionfindAllByCategory(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)findProduct(CatalogVersionModel catalogVersion, 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)findProduct(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 Details
-
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, 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:
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, 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:
IllegalArgumentException- ofcatalogVersionorcodeisnullUnknownIdentifierException- if noProductModelwith the givencodeand with the givencatalogVersionwas found.AmbiguousIdentifierException- if for the givencodeant for the givencatalogVersionmore than oneProductModelwas found.
-
ProductDao