Class AbstractCMSItemDao
java.lang.Object
de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
de.hybris.platform.cms2.servicelayer.daos.impl.AbstractCMSItemDao
- All Implemented Interfaces:
Dao
- Direct Known Subclasses:
DefaultCMSComponentDao,DefaultCMSItemTypeAttributeFilterConfigDao,DefaultCMSMediaFolderDao,DefaultCMSTypeRestrictionDao,DefaultCMSVersionGCDao,DefaultCMSWorkflowActionDao,DefaultCMSWorkflowDao
Abstract class for
AbstractItemDao to support pageable search queries-
Field Summary
Fields inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
flexibleSearchService, modelService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected FlexibleSearchQuerybuildQuery(String baseQuery, Map<String, Object> params, int currentPage, int pageSize) protected StringfindSortQuery(Class<? extends Dao> typeClass, String sortCode) Find the sort query for a given type class and sort code.protected SortQueryDataRegistryvoidsetCmsSortQueryDataRegistry(SortQueryDataRegistry cmsSortQueryDataRegistry) Methods inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
getAllSources, getFlexibleSearchService, getModelService, getSource, load, loadAll, search, search, searchUnique, setFlexibleSearchService, setModelService
-
Constructor Details
-
AbstractCMSItemDao
public AbstractCMSItemDao()
-
-
Method Details
-
findSortQuery
Find the sort query for a given type class and sort code.
If no sort query is found matching for the given type class and sort code, find the default sort query.
If no default sort query is found for the given type class, return an empty string.- Parameters:
typeClass- the dao class associated to aSortQueryDatasortCode- the sort code associated to aSortQueryData- Returns:
- the sort query or empty string if none is found; never null
-
buildQuery
protected FlexibleSearchQuery buildQuery(String baseQuery, Map<String, Object> params, int currentPage, int pageSize) -
getCmsSortQueryDataRegistry
-
setCmsSortQueryDataRegistry
-