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
,DefaultCMSVersionGCDao
,DefaultCMSWorkflowActionDao
,DefaultCMSWorkflowDao
public abstract class AbstractCMSItemDao extends AbstractItemDao
Abstract class forAbstractItemDao
to support pageable search queries
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
flexibleSearchService, modelService
-
-
Constructor Summary
Constructors Constructor Description AbstractCMSItemDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected FlexibleSearchQuery
buildQuery(java.lang.String baseQuery, java.util.Map<java.lang.String,java.lang.Object> params, int currentPage, int pageSize)
protected java.lang.String
findSortQuery(java.lang.Class<? extends Dao> typeClass, java.lang.String sortCode)
Find the sort query for a given type class and sort code.protected SortQueryDataRegistry
getCmsSortQueryDataRegistry()
void
setCmsSortQueryDataRegistry(SortQueryDataRegistry cmsSortQueryDataRegistry)
-
Methods inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
getAllSources, getFlexibleSearchService, getModelService, getSource, load, loadAll, search, search, searchUnique, setFlexibleSearchService, setModelService
-
-
-
-
Method Detail
-
findSortQuery
protected java.lang.String findSortQuery(java.lang.Class<? extends Dao> typeClass, java.lang.String sortCode)
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 aSortQueryData
sortCode
- the sort code associated to aSortQueryData
- Returns:
- the sort query or empty string if none is found; never null
-
buildQuery
protected FlexibleSearchQuery buildQuery(java.lang.String baseQuery, java.util.Map<java.lang.String,java.lang.Object> params, int currentPage, int pageSize)
-
getCmsSortQueryDataRegistry
protected SortQueryDataRegistry getCmsSortQueryDataRegistry()
-
setCmsSortQueryDataRegistry
public void setCmsSortQueryDataRegistry(SortQueryDataRegistry cmsSortQueryDataRegistry)
-
-