Class DefaultCategoryDao
java.lang.Object
de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
de.hybris.platform.category.daos.impl.DefaultCategoryDao
- All Implemented Interfaces:
CategoryDao,Dao
Default implementation for
CategoryDao.-
Field Summary
Fields inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
flexibleSearchService, modelService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindCategories(CatalogVersionModel catalogVersion, String code) Deprecated, for removal: This API element is subject to removal in a future version.since agesfindCategoriesByCatalogVersionAndProduct(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 agesfindRootCategoriesByCatalogVersion(CatalogVersionModel catalogVersion) Finds all root categories for the specificCatalogVersionModel.Methods inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
getAllSources, getFlexibleSearchService, getModelService, getSource, load, loadAll, search, search, searchUnique, setFlexibleSearchService, setModelService
-
Constructor Details
-
DefaultCategoryDao
public DefaultCategoryDao()
-
-
Method Details
-
findCategories
@Deprecated(since="ages", forRemoval=true) public Collection<CategoryModel> findCategories(CatalogVersionModel catalogVersion, String code) Deprecated, for removal: This API element is subject to removal in a future version.since ages- Specified by:
findCategoriesin interfaceCategoryDao- Returns:
- all found
CategoryModels, or an empty collection if no category can be found by thecodeor givenCatalogVersionModelis not an active session catalog version.
-
findCategoriesByCode
public Collection<CategoryModel> findCategoriesByCode(CatalogVersionModel catalogVersion, String code) - Specified by:
findCategoriesByCodein interfaceCategoryDao- 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.- Specified by:
findCategoriesByCodein interfaceCategoryDao- 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
public Collection<CategoryModel> findCategoriesByCatalogVersionAndProduct(CatalogVersionModel catver, ProductModel product) Finds categories by catalog version and product.- Specified by:
findCategoriesByCatalogVersionAndProductin interfaceCategoryDao- Parameters:
catver- the catalog version for which search is performedproduct- the product for which search is performed- Returns:
- the resulting collection of found categories
-
findRootCategories
@Deprecated(since="ages", forRemoval=true) public Collection<CategoryModel> findRootCategories(CatalogVersionModel catalogVersion) Deprecated, for removal: This API element is subject to removal in a future version.since ages- Specified by:
findRootCategoriesin interfaceCategoryDao- Returns:
- all found
CategoryModels, or empty collection if theCatalogVersionModelcontains no categories or is not an active session catalog version.
-
findRootCategoriesByCatalogVersion
public Collection<CategoryModel> findRootCategoriesByCatalogVersion(CatalogVersionModel catalogVersion) Finds all root categories for the specificCatalogVersionModel.- Specified by:
findRootCategoriesByCatalogVersionin interfaceCategoryDao- Parameters:
catalogVersion- theCatalogVersionModel- Returns:
- all found
CategoryModels, or empty collection if theCatalogVersionModelcontains no categories or is not an active session catalog version.
-
findOrderedRootCategoriesForCatalogVersion
public List<CategoryModel> findOrderedRootCategoriesForCatalogVersion(CatalogVersionModel catalogVersion) Finds all root categories for the specificCatalogVersionModelsorted by order attribute.- Specified by:
findOrderedRootCategoriesForCatalogVersionin interfaceCategoryDao- 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
-