Package de.hybris.platform.catalog.daos
Interface CatalogDao
- All Superinterfaces:
GenericDao<CatalogModel>
- All Known Implementing Classes:
CatalogMockDao,DefaultCatalogDao
The
CatalogModel DAO.- Spring Bean ID:
- catalogDao
-
Method Summary
Modifier and TypeMethodDescriptionReturn allCatalogModels sorted in ascending order byCatalogModel.ID.ReturnsCatalogModelwith the given id.Returns a collection ofCatalogModels with the current defaultCatalogModelof the system (one element).
-
Method Details
-
findCatalogById
ReturnsCatalogModelwith the given id.- Parameters:
id- catalog id- Returns:
- Matching
CatalogModel - Throws:
IllegalArgumentException- if id was null.UnknownIdentifierException- if noCatalogModelwith the given id could be found.
-
findAllCatalogs
Collection<CatalogModel> findAllCatalogs()Return allCatalogModels sorted in ascending order byCatalogModel.ID.- Returns:
CollectionofCatalogModels or empty collection.
-
findDefaultCatalogs
Collection<CatalogModel> findDefaultCatalogs()Returns a collection ofCatalogModels with the current defaultCatalogModelof the system (one element).- Returns:
- an empty collection if no default catalog is set in the system.
-