public abstract class QueryRequest extends Request
| Constructor and Description |
|---|
QueryRequest() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
addSelectProperties(List<String> selectProp)
Adds properties to the $select system query option.
|
abstract Map<String,String> |
getCustomQueryOptions()
Gets the custom query options specified in the URL.
|
abstract List<String> |
getExpandProperties()
Gets the list of properties specified in the $expand system query option.
|
abstract ExpressionBuilder |
getExpressionBuilder()
Gets the
ExpressionBuilder object with which you can create your
own filter expressions. |
abstract List<OrderByExpression> |
getOrderByProperties()
Gets the list of properties specified in the $orderby system query option.
|
abstract Expression |
getQueryExpression()
Gets the filter expression tree from the Query request.
|
abstract List<String> |
getSelectProperties()
Gets the list of properties specified in the $select system query option.
|
abstract int |
getSkipOptionValue()
Gets the value specified in the $skip system query option.
|
abstract Map<String,Object> |
getSourceKeys()
Gets the keys of the parent entity specified in a navigation.
|
abstract int |
getTopOptionValue()
Gets the value specified in the $top system query option.
|
abstract boolean |
isCountCall()
Returns true when it is a $count call(Only return the number of records.) For
example, if the URL is /EPMSampleService/SalesOrders/$count then this method
returns true
|
abstract boolean |
isInlineCountCall()
Indicates whether there is a $inlinecount=allpages or $count=true system
query option in the request (depending on OData V2 or OData V4).
|
getEntityName, getSourceEntityNamecontainsHeader, getEntityMetadata, getHeader, getHeaderNames, getHeaders, getHttpMethod, getLocale, getMessageContainer, getRequestContext, getServiceName, setServiceNamepublic abstract Map<String,Object> getSourceKeys()
Map containing the keys of the parent entitypublic abstract int getTopOptionValue()
int representing the value in the $top system query
optionpublic abstract Map<String,String> getCustomQueryOptions()
Map containing the key value pair of
the specified custom query optionspublic abstract int getSkipOptionValue()
int representing the value in the $skip system query
optionpublic abstract List<OrderByExpression> getOrderByProperties()
List of OrderByExpression objects
containing the properties and their corresponding sorting orderpublic abstract List<String> getSelectProperties()
List of String objects containing the
properties specified in $select expressionpublic abstract boolean isCountCall()
boolean representing if it is a $count callpublic abstract boolean isInlineCountCall()
boolean indicating whether there is a
$inlinecount=allpages or $count=true system query option in the
requestpublic abstract Expression getQueryExpression()
Expression object representing the filter expression
treepublic abstract ExpressionBuilder getExpressionBuilder()
ExpressionBuilder object with which you can create your
own filter expressions.ExpressionBuilder objectpublic abstract void addSelectProperties(List<String> selectProp)
selectProp - A list of strings representing the properties to be addedpublic abstract List<String> getExpandProperties()
List of String objects containing the properties
specified in $expand expressionCopyright © 2020 SAP. All Rights Reserved.