Package de.hybris.platform.category.daos
Interface CategoryDao
-
- All Superinterfaces:
Dao
- All Known Implementing Classes:
DefaultCategoryDao
public interface CategoryDao extends Dao
The DAO for theCategoryModel.- Spring Bean ID:
- categoryDao
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description java.util.Collection<CategoryModel>findCategories(CatalogVersionModel catalogVersion, java.lang.String code)Deprecated.since 4.3, please usefindCategoriesByCode(CatalogVersionModel, String).java.util.Collection<CategoryModel>findCategoriesByCatalogVersionAndProduct(CatalogVersionModel catver, ProductModel product)Finds categories by catalog version and product.java.util.Collection<CategoryModel>findCategoriesByCode(CatalogVersionModel catalogVersion, java.lang.String code)java.util.Collection<CategoryModel>findCategoriesByCode(java.lang.String code)Finds allCategoryModels with the specificcode.java.util.List<CategoryModel>findOrderedRootCategoriesForCatalogVersion(CatalogVersionModel catalogVersion)Finds all root categories for the specificCatalogVersionModelsorted by order attribute.java.util.Collection<CategoryModel>findRootCategories(CatalogVersionModel catalogVersion)Deprecated.since 4.3, please usefindRootCategoriesByCatalogVersion(CatalogVersionModel).java.util.Collection<CategoryModel>findRootCategoriesByCatalogVersion(CatalogVersionModel catalogVersion)Finds all root categories for the specificCatalogVersionModel.
-
-
-
Method Detail
-
findRootCategories
@Deprecated java.util.Collection<CategoryModel> findRootCategories(CatalogVersionModel catalogVersion)
Deprecated.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
java.util.Collection<CategoryModel> findRootCategoriesByCatalogVersion(CatalogVersionModel catalogVersion)
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
java.util.List<CategoryModel> findOrderedRootCategoriesForCatalogVersion(CatalogVersionModel catalogVersion)
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 java.util.Collection<CategoryModel> findCategories(CatalogVersionModel catalogVersion, java.lang.String code)
Deprecated.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
java.util.Collection<CategoryModel> findCategoriesByCode(CatalogVersionModel catalogVersion, java.lang.String code)
- 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
java.util.Collection<CategoryModel> findCategoriesByCode(java.lang.String code)
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
java.util.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
-
-