Class DefaultCatalogDao
- java.lang.Object
-
- de.hybris.platform.servicelayer.internal.dao.DefaultGenericDao<CatalogModel>
-
- de.hybris.platform.catalog.daos.impl.DefaultCatalogDao
-
- All Implemented Interfaces:
CatalogDao,GenericDao<CatalogModel>
public class DefaultCatalogDao extends DefaultGenericDao<CatalogModel> implements CatalogDao
Default implementation of theCatalogDao.
-
-
Constructor Summary
Constructors Constructor Description DefaultCatalogDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<CatalogModel>findAllCatalogs()Return allCatalogModels sorted in ascending order byCatalogModel.ID.CatalogModelfindCatalogById(java.lang.String id)ReturnsCatalogModelwith the given id.java.util.Collection<CatalogModel>findDefaultCatalogs()Returns a collection ofCatalogModels with the current defaultCatalogModelof the system (one element).-
Methods inherited from class de.hybris.platform.servicelayer.internal.dao.DefaultGenericDao
find, find, find, find, find, getFlexibleSearchService, setFlexibleSearchService
-
-
-
-
Method Detail
-
findAllCatalogs
public java.util.Collection<CatalogModel> findAllCatalogs()
Description copied from interface:CatalogDaoReturn allCatalogModels sorted in ascending order byCatalogModel.ID.- Specified by:
findAllCatalogsin interfaceCatalogDao- Returns:
CollectionofCatalogModels or empty collection.
-
findCatalogById
public CatalogModel findCatalogById(java.lang.String id)
Description copied from interface:CatalogDaoReturnsCatalogModelwith the given id.- Specified by:
findCatalogByIdin interfaceCatalogDao- Parameters:
id- catalog id- Returns:
- Matching
CatalogModel
-
findDefaultCatalogs
public java.util.Collection<CatalogModel> findDefaultCatalogs()
Description copied from interface:CatalogDaoReturns a collection ofCatalogModels with the current defaultCatalogModelof the system (one element).- Specified by:
findDefaultCatalogsin interfaceCatalogDao- Returns:
- an empty collection if no default catalog is set in the system.
-
-