public class QueryRequestImpl extends QueryRequest
| Constructor and Description |
|---|
QueryRequestImpl(RequestContext requestContext,
String entityName,
EntityMetadata entityMetadata,
Map<String,List<String>> headers,
String httpMethod) |
| Modifier and Type | Method and Description |
|---|---|
void |
addSelectProperties(List<String> selectedProperties)
Adds properties to the $select system query option.
|
Map<String,String> |
getCustomQueryOptions()
Gets the custom query options specified in the URL.
|
List<String> |
getExpandProperties()
Gets the list of properties specified in the $expand system query option.
|
ExpressionBuilder |
getExpressionBuilder()
Gets the
ExpressionBuilder object with which you can create your
own filter expressions. |
List<OrderByExpression> |
getOrderByProperties()
Gets the list of properties specified in the $orderby system query option.
|
Expression |
getQueryExpression()
Gets the filter expression tree from the Query request.
|
Object |
getQueryExpressionInternal() |
List<String> |
getSelectProperties()
Gets the list of properties specified in the $select system query option.
|
int |
getSkipOptionValue()
Gets the value specified in the $skip system query option.
|
Map<String,Object> |
getSourceKeys()
Gets the keys of the parent entity specified in a navigation.
|
int |
getTopOptionValue()
Gets the value specified in the $top system query option.
|
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
|
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).
|
void |
setCountCall(boolean countCall) |
void |
setCustomQueryOptions(Map<String,String> customQueryOptions) |
void |
setExpandItems(String expandItems) |
void |
setIsInlineCount(boolean isInlineCount) |
void |
setOrderByOption(OrderByExpression orderByOptions) |
void |
setQueryExpression(Expression expression) |
void |
setSelectItems(String selectItems) |
void |
setSkipOption(int skipValue) |
void |
setSourceEntityName(String sourceEntityName) |
void |
setSourceKeys(Map<String,Object> sourceKeys) |
void |
setTopOption(int topValue) |
getEntityName, getSourceEntityNamecontainsHeader, getEntityMetadata, getHeader, getHeaderNames, getHeaders, getHttpMethod, getLocale, getMessageContainer, getRequestContext, getServiceName, setServiceNamepublic QueryRequestImpl(RequestContext requestContext, String entityName, EntityMetadata entityMetadata, Map<String,List<String>> headers, String httpMethod)
public Map<String,Object> getSourceKeys()
QueryRequestgetSourceKeys in class QueryRequestMap containing the keys of the parent entitypublic void setSourceEntityName(String sourceEntityName)
public void setTopOption(int topValue)
public int getTopOptionValue()
QueryRequestgetTopOptionValue in class QueryRequestint representing the value in the $top system query
optionpublic int getSkipOptionValue()
QueryRequestgetSkipOptionValue in class QueryRequestint representing the value in the $skip system query
optionpublic void setSkipOption(int skipValue)
public void setOrderByOption(OrderByExpression orderByOptions)
public List<OrderByExpression> getOrderByProperties()
QueryRequestgetOrderByProperties in class QueryRequestList of OrderByExpression objects
containing the properties and their corresponding sorting orderpublic void setSelectItems(String selectItems)
public List<String> getSelectProperties()
QueryRequestgetSelectProperties in class QueryRequestList of String objects containing the
properties specified in $select expressionpublic Map<String,String> getCustomQueryOptions()
QueryRequestgetCustomQueryOptions in class QueryRequestMap containing the key value pair of
the specified custom query optionspublic void setCountCall(boolean countCall)
public boolean isCountCall()
QueryRequestisCountCall in class QueryRequestboolean representing if it is a $count callpublic Expression getQueryExpression()
QueryRequestgetQueryExpression in class QueryRequestExpression object representing the filter expression
treepublic Object getQueryExpressionInternal()
public ExpressionBuilder getExpressionBuilder()
QueryRequestExpressionBuilder object with which you can create your
own filter expressions.getExpressionBuilder in class QueryRequestExpressionBuilder objectpublic void setQueryExpression(Expression expression)
public void addSelectProperties(List<String> selectedProperties)
QueryRequestaddSelectProperties in class QueryRequestselectedProperties - A list of strings representing the properties to be addedpublic void setIsInlineCount(boolean isInlineCount)
public boolean isInlineCountCall()
QueryRequestisInlineCountCall in class QueryRequestboolean indicating whether there is a
$inlinecount=allpages or $count=true system query option in the
requestpublic void setExpandItems(String expandItems)
public List<String> getExpandProperties()
QueryRequestgetExpandProperties in class QueryRequestList of String objects containing the properties
specified in $expand expressionCopyright © 2020 SAP. All Rights Reserved.