Package de.hybris.platform.catalog.daos
Interface CatalogDao
-
- All Superinterfaces:
GenericDao<CatalogModel>
- All Known Implementing Classes:
CatalogMockDao,DefaultCatalogDao
public interface CatalogDao extends GenericDao<CatalogModel>
TheCatalogModelDAO.- Spring Bean ID:
- catalogDao
-
-
Method Summary
All Methods Instance Methods Abstract 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).
-
-
-
Method Detail
-
findCatalogById
CatalogModel findCatalogById(java.lang.String id)
ReturnsCatalogModelwith the given id.- Parameters:
id- catalog id- Returns:
- Matching
CatalogModel - Throws:
java.lang.IllegalArgumentException- if id was null.UnknownIdentifierException- if noCatalogModelwith the given id could be found.
-
findAllCatalogs
java.util.Collection<CatalogModel> findAllCatalogs()
Return allCatalogModels sorted in ascending order byCatalogModel.ID.- Returns:
CollectionofCatalogModels or empty collection.
-
findDefaultCatalogs
java.util.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.
-
-