public class QueryHandler extends Object
| Constructor and Description |
|---|
QueryHandler() |
| Modifier and Type | Method and Description |
|---|---|
static void |
applyCountSystemQueryOption(org.apache.olingo.server.api.uri.queryoption.CountOption countOption,
org.apache.olingo.commons.api.data.EntityCollection entitySet)
This method applies count query option to the given entity collection.
|
static void |
applyFilterSystemQuery(org.apache.olingo.server.api.uri.queryoption.FilterOption filterOption,
org.apache.olingo.commons.api.data.EntityCollection entitySet,
org.apache.olingo.commons.api.edm.EdmBindingTarget edmEntitySet)
This method applies filter query option to the given entity collection.
|
static void |
applyOrderByOption(org.apache.olingo.server.api.uri.queryoption.OrderByOption orderByOption,
org.apache.olingo.commons.api.data.EntityCollection entitySet,
org.apache.olingo.commons.api.edm.EdmBindingTarget edmBindingTarget)
This method applies order by option query to the given entity collection.
|
static Integer |
applyServerSidePaging(org.apache.olingo.server.api.uri.queryoption.SkipTokenOption skipTokenOption,
org.apache.olingo.commons.api.data.EntityCollection entityCollection,
org.apache.olingo.commons.api.edm.EdmEntitySet edmEntitySet,
String rawRequestUri,
Integer preferredPageSize)
This method applies server-side paging to the given entity collection.
|
static void |
applySkipSystemQueryHandler(org.apache.olingo.server.api.uri.queryoption.SkipOption skipOption,
org.apache.olingo.commons.api.data.EntityCollection entitySet)
This method applies skip query option to the given entity collection.
|
static void |
applyTopSystemQueryOption(org.apache.olingo.server.api.uri.queryoption.TopOption topOption,
org.apache.olingo.commons.api.data.EntityCollection entitySet)
This method applies top query option to the given entity collection.
|
public static void applyCountSystemQueryOption(org.apache.olingo.server.api.uri.queryoption.CountOption countOption,
org.apache.olingo.commons.api.data.EntityCollection entitySet)
countOption - Count optionentitySet - Entity collectionpublic static void applyFilterSystemQuery(org.apache.olingo.server.api.uri.queryoption.FilterOption filterOption,
org.apache.olingo.commons.api.data.EntityCollection entitySet,
org.apache.olingo.commons.api.edm.EdmBindingTarget edmEntitySet)
throws org.apache.olingo.server.api.ODataApplicationException
filterOption - Filter optionentitySet - Entity collectionedmEntitySet - Entity setorg.apache.olingo.server.api.ODataApplicationExceptionpublic static void applyTopSystemQueryOption(org.apache.olingo.server.api.uri.queryoption.TopOption topOption,
org.apache.olingo.commons.api.data.EntityCollection entitySet)
throws org.apache.olingo.server.api.ODataApplicationException
topOption - Top optionentitySet - Entity Collectionorg.apache.olingo.server.api.ODataApplicationExceptionpublic static void applySkipSystemQueryHandler(org.apache.olingo.server.api.uri.queryoption.SkipOption skipOption,
org.apache.olingo.commons.api.data.EntityCollection entitySet)
throws org.apache.olingo.server.api.ODataApplicationException
skipOption - Skip optionentitySet - Entity collectionorg.apache.olingo.server.api.ODataApplicationExceptionpublic static Integer applyServerSidePaging(org.apache.olingo.server.api.uri.queryoption.SkipTokenOption skipTokenOption, org.apache.olingo.commons.api.data.EntityCollection entityCollection, org.apache.olingo.commons.api.edm.EdmEntitySet edmEntitySet, String rawRequestUri, Integer preferredPageSize) throws org.apache.olingo.server.api.ODataApplicationException
skipTokenOption - Current skip token option (from a previous response's next link)entityCollection - Entity collectionedmEntitySet - EDM entity set to decide whether paging must be donerawRequestUri - Request URI (used to construct the next link)preferredPageSize - Preference for page sizeorg.apache.olingo.server.api.ODataApplicationExceptionpublic static void applyOrderByOption(org.apache.olingo.server.api.uri.queryoption.OrderByOption orderByOption,
org.apache.olingo.commons.api.data.EntityCollection entitySet,
org.apache.olingo.commons.api.edm.EdmBindingTarget edmBindingTarget)
orderByOption - Order by optionentitySet - Entity SetedmBindingTarget - Binding TargetCopyright © 2018 WSO2. All rights reserved.