public class QueryHandler extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.olingo.server.api.OData |
oData |
protected static org.apache.olingo.commons.api.edm.EdmPrimitiveType |
primBoolean |
| 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) |
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) |
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) |
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)
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) |
static void |
applyTopSystemQueryOption(org.apache.olingo.server.api.uri.queryoption.TopOption topOption,
org.apache.olingo.commons.api.data.EntityCollection entitySet) |
protected static final org.apache.olingo.server.api.OData oData
protected static final org.apache.olingo.commons.api.edm.EdmPrimitiveType primBoolean
public static void applyCountSystemQueryOption(org.apache.olingo.server.api.uri.queryoption.CountOption countOption,
org.apache.olingo.commons.api.data.EntityCollection entitySet)
public 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
org.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
org.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
org.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
Applies server-side paging to the given entity collection.
The next link is constructed and set in the data. It must support client-specified
page sizes. Therefore, the format page*pageSize (with a literal asterisk)
has been chosen for the skiptoken.
skipTokenOption - the current skiptoken option (from a previous response's next link)entityCollection - the dataedmEntitySet - the EDM entity set to decide whether paging must be donerawRequestUri - the request URI (used to construct the next link)preferredPageSize - the client's preference for page sizenull if no paging has been done);
could be used in the Preference-Applied HTTP headerorg.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)
Copyright © 2015 WSO2. All rights reserved.