Class DefaultCategoryDao
- java.lang.Object
-
- de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
-
- de.hybris.platform.category.daos.impl.DefaultCategoryDao
-
- All Implemented Interfaces:
CategoryDao,Dao
public class DefaultCategoryDao extends AbstractItemDao implements CategoryDao
Default implementation forCategoryDao.
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
flexibleSearchService, modelService
-
-
Constructor Summary
Constructors Constructor Description DefaultCategoryDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.util.Collection<CategoryModel>findCategories(CatalogVersionModel catalogVersion, java.lang.String code)Deprecated.since agesjava.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 agesjava.util.Collection<CategoryModel>findRootCategoriesByCatalogVersion(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
-
-
-
-
Method Detail
-
findCategories
@Deprecated public java.util.Collection<CategoryModel> findCategories(CatalogVersionModel catalogVersion, java.lang.String code)
Deprecated.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 java.util.Collection<CategoryModel> findCategoriesByCode(CatalogVersionModel catalogVersion, java.lang.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
public java.util.Collection<CategoryModel> findCategoriesByCode(java.lang.String code)
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 java.util.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 public java.util.Collection<CategoryModel> findRootCategories(CatalogVersionModel catalogVersion)
Deprecated.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 java.util.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 java.util.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
-
-