Package de.hybris.platform.category.daos
Interface CategoryDao
- All Superinterfaces:
Dao
- All Known Implementing Classes:
DefaultCategoryDao
The DAO for the
CategoryModel.- Spring Bean ID:
- categoryDao
-
Method Summary
Modifier and TypeMethodDescriptionfindCategories(CatalogVersionModel catalogVersion, String code) Deprecated, for removal: This API element is subject to removal in a future version.findCategoriesByCatalogVersionAndProduct(CatalogVersionModel catver, ProductModel product) Finds categories by catalog version and product.findCategoriesByCode(CatalogVersionModel catalogVersion, String code) findCategoriesByCode(String code) Finds allCategoryModels with the specificcode.findOrderedRootCategoriesForCatalogVersion(CatalogVersionModel catalogVersion) Finds all root categories for the specificCatalogVersionModelsorted by order attribute.findRootCategories(CatalogVersionModel catalogVersion) Deprecated, for removal: This API element is subject to removal in a future version.since 4.3, please usefindRootCategoriesByCatalogVersion(CatalogVersionModel).findRootCategoriesByCatalogVersion(CatalogVersionModel catalogVersion) Finds all root categories for the specificCatalogVersionModel.
-
Method Details
-
findRootCategories
@Deprecated(since="4.3", forRemoval=true) Collection<CategoryModel> findRootCategories(CatalogVersionModel catalogVersion) Deprecated, for removal: This API element is subject to removal in a future version.since 4.3, please usefindRootCategoriesByCatalogVersion(CatalogVersionModel).- Returns:
- all found
CategoryModels, or empty collection if theCatalogVersionModelcontains no categories or is not an active session catalog version.
-
findRootCategoriesByCatalogVersion
Finds all root categories for the specificCatalogVersionModel.- Parameters:
catalogVersion- theCatalogVersionModel- Returns:
- all found
CategoryModels, or empty collection if theCatalogVersionModelcontains no categories or is not an active session catalog version.
-
findOrderedRootCategoriesForCatalogVersion
Finds all root categories for the specificCatalogVersionModelsorted by order attribute.- Parameters:
catalogVersion- theCatalogVersionModel- Returns:
- all found
CategoryModels, or empty collection if theCatalogVersionModelcontains no categories or is not an active session catalog version sorted by order attribute
-
findCategories
@Deprecated(since="4.3", forRemoval=true) Collection<CategoryModel> findCategories(CatalogVersionModel catalogVersion, String code) Deprecated, for removal: This API element is subject to removal in a future version.since 4.3, please usefindCategoriesByCode(CatalogVersionModel, String).- Returns:
- all found
CategoryModels, or an empty collection if no category can be found by thecodeor givenCatalogVersionModelis not an active session catalog version.
-
findCategoriesByCode
- Parameters:
catalogVersion- theCatalogVersionModelcode- the category code- Returns:
- all found
CategoryModels, or an empty collection if no category can be found by thecodeor givenCatalogVersionModelis not an active session catalog version.
-
findCategoriesByCode
Finds allCategoryModels with the specificcode.- Parameters:
code- the category code- Returns:
- all found
CategoryModels, or an empty collection if no category can be found by thecodeis not an active session catalog version.
-
findCategoriesByCatalogVersionAndProduct
Collection<CategoryModel> findCategoriesByCatalogVersionAndProduct(CatalogVersionModel catver, ProductModel product) Finds categories by catalog version and product.- Parameters:
catver- the catalog version for which search is performedproduct- the product for which search is performed- Returns:
- the resulting collection of found categories
-
findCategoriesByCode(CatalogVersionModel, String).