public class QueryPagingStrategy extends java.lang.Object implements PagingStrategy
| Constructor and Description |
|---|
QueryPagingStrategy() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
executeCollectionTypePaging(PageInfoCtx pagingInfo,
java.lang.Object value)
Deprecated.
after CollectionTypes will be replaced with RelationTypes(since 5.0.0) this method will be useless.
There will be no need to implement this method. The executeRelationTypePaging method will be used
instead of this.
|
java.lang.Object |
executeRelationTypePaging(PageInfoCtx pagingInfo,
RelationDescriptorModel relDesc,
java.lang.Object model)
Returns a paginated collection which is specified by pagingInfo and comes from N:M relation OR a paginated
collection which comes from 1:N relation.
|
java.lang.Object |
executeRootCollectionPaging(PageInfoCtx pagingInfo,
java.lang.String typeCode)
Returns a collection which comes from Root Resource(possibly paginated).
|
PageInfoCtx |
findPageContext(java.lang.String collectionPropertyName,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> queryParams)
Returns page context if query parameters and collection property name suit each other.
|
FlexibleSearchService |
getFlexibleSearchService() |
ModelService |
getModelService() |
void |
setFlexibleSearchService(FlexibleSearchService flexibleSearchService) |
void |
setModelService(ModelService modelService) |
public ModelService getModelService()
public void setModelService(ModelService modelService)
public FlexibleSearchService getFlexibleSearchService()
public void setFlexibleSearchService(FlexibleSearchService flexibleSearchService)
public PageInfoCtx findPageContext(java.lang.String collectionPropertyName, java.util.Map<java.lang.String,java.util.List<java.lang.String>> queryParams)
findPageContext in interface PagingStrategycollectionPropertyName - The Name of the collection property.queryParams - Query parameters which comes from requested URL.public java.lang.Object executeRootCollectionPaging(PageInfoCtx pagingInfo, java.lang.String typeCode)
executeRootCollectionPaging in interface PagingStrategypagingInfo - Holds all required information about paging settings.typeCode - The requested type code of collection elements.public java.lang.Object executeRelationTypePaging(PageInfoCtx pagingInfo, RelationDescriptorModel relDesc, java.lang.Object model)
executeRelationTypePaging in interface PagingStrategypagingInfo - Holds all required information about paging settings.relDesc - The relation descriptor.model - The instance of model which holds the returned collection.@Deprecated public java.lang.Object executeCollectionTypePaging(PageInfoCtx pagingInfo, java.lang.Object value)
executeCollectionTypePaging in interface PagingStrategypagingInfo - Holds all required information about paging settings.value - The collection which will be paginated.Copyright © 2018 SAP SE. All Rights Reserved.