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 allCategoryModel
s with the specificcode
.java.util.List<CategoryModel>
findOrderedRootCategoriesForCatalogVersion(CatalogVersionModel catalogVersion)
Finds all root categories for the specificCatalogVersionModel
sorted 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:
findCategories
in interfaceCategoryDao
- Returns:
- all found
CategoryModel
s, or an empty collection if no category can be found by thecode
or givenCatalogVersionModel
is not an active session catalog version.
-
findCategoriesByCode
public java.util.Collection<CategoryModel> findCategoriesByCode(CatalogVersionModel catalogVersion, java.lang.String code)
- Specified by:
findCategoriesByCode
in interfaceCategoryDao
- Parameters:
catalogVersion
- theCatalogVersionModel
code
- the category code- Returns:
- all found
CategoryModel
s, or an empty collection if no category can be found by thecode
or givenCatalogVersionModel
is not an active session catalog version.
-
findCategoriesByCode
public java.util.Collection<CategoryModel> findCategoriesByCode(java.lang.String code)
Finds allCategoryModel
s with the specificcode
.- Specified by:
findCategoriesByCode
in interfaceCategoryDao
- Parameters:
code
- the category code- Returns:
- all found
CategoryModel
s, or an empty collection if no category can be found by thecode
is 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:
findCategoriesByCatalogVersionAndProduct
in 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:
findRootCategories
in interfaceCategoryDao
- Returns:
- all found
CategoryModel
s, or empty collection if theCatalogVersionModel
contains 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:
findRootCategoriesByCatalogVersion
in interfaceCategoryDao
- Parameters:
catalogVersion
- theCatalogVersionModel
- Returns:
- all found
CategoryModel
s, or empty collection if theCatalogVersionModel
contains 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 specificCatalogVersionModel
sorted by order attribute.- Specified by:
findOrderedRootCategoriesForCatalogVersion
in interfaceCategoryDao
- Parameters:
catalogVersion
- theCatalogVersionModel
- Returns:
- all found
CategoryModel
s, or empty collection if theCatalogVersionModel
contains no categories or is not an active session catalog version sorted by order attribute
-
-