public interface QueryResponseBuilder extends ResponseBuilder
| Modifier and Type | Method and Description |
|---|---|
QueryResponseBuilder |
addHeader(String name,
String value)
Adds a header with the specified name and value in the QueryResponseBuilder object.
|
QueryResponseBuilder |
addHeaders(Map<String,List<String>> headers)
Adds headers in the QueryResponseBuilder object.
|
QueryResponseBuilder |
audit(boolean enable)
Enables auditing for query operation.
|
QueryResponseBuilder |
audit(EntityData entityData,
List<String> properties)
Deprecated.
|
QueryResponse |
response()
Returns an instance of QueryResponse object.
|
QueryResponseBuilder |
setCount(int count) |
QueryResponseBuilder |
setData(List<?> pojoList)
Sets a list of POJO objects representing the entities returned by the query operation
in the QueryResponseBuilder object.
|
QueryResponseBuilder |
setDataAsMap(List<Map<String,Object>> data)
Sets a list of key-value pairs representing the properties of entities returned by the query operation
in the QueryResponseBuilder object.
|
QueryResponseBuilder |
setEntityData(List<EntityData> entityDataList)
Sets a list of EntityData objects representing the entities returned by the query operation
in the QueryResponseBuilder object.
|
QueryResponseBuilder |
setHeader(String name,
String value)
Sets a header with the specified name and value in the QueryResponseBuilder object.
|
QueryResponseBuilder |
setInlineCount(int inlineCount)
Sets a custom inline count value that overrides the default value returned in
the response.
|
QueryResponseBuilder |
setSkipDone(boolean isSkipDone)
Indicates that there is a custom implementation of the $skip system query option.
|
QueryResponseBuilder |
setTopDone(boolean isTopDone)
Indicates that there is a custom implementation of the $top system query option.
|
QueryResponseBuilder addHeaders(Map<String,List<String>> headers)
headers - A java.util.Map> containing the headers to be addedQueryResponseBuilder object containing the added headersQueryResponseBuilder setDataAsMap(List<Map<String,Object>> data)
data - A List of Map objects that represents the queried entitiesQueryResponseBuilder object containing the queried entitiesQueryResponseBuilder setEntityData(List<EntityData> entityDataList)
entityDataList - A List of EntityData objects that represents the queried entitiesQueryResponseBuilder object containing the queried entitiesQueryResponseBuilder setData(List<?> pojoList)
pojoList - A List of POJO objects that represents the queried entitiesQueryResponseBuilder object containing the queried entitiesQueryResponseBuilder setHeader(String name, String value)
name - A String containing the name of the headervalue - A String containing the header valueQueryResponseBuilder object containing the newly added or updated headerQueryResponseBuilder addHeader(String name, String value)
name - A String containing the name of the headervalue - A String containing the additional header valueQueryResponseBuilder object containing the additional headerQueryResponseBuilder audit(boolean enable)
enable - A boolean to enable or disable auditingQueryResponseBuilder object containing the updated auditing attribute@Deprecated QueryResponseBuilder audit(EntityData entityData, List<String> properties)
entityData - An EntityData object to be auditedproperties - A List of String objects containing the properties to be auditedQueryResponseBuilder object containing the entity and its properties to be auditedQueryResponseBuilder setTopDone(boolean isTopDone)
isTopDone - A boolean to indicate that there is a custom implementation of the $top system query optionQueryResponseBuilder object containing this flagQueryResponseBuilder setSkipDone(boolean isSkipDone)
isSkipDone - A boolean to indicate that there is a custom implementation of the $skip system query optionQueryResponseBuilder object containing this flagQueryResponseBuilder setInlineCount(int inlineCount)
inlineCount - An integer that represents the custom inline count valueQueryResponseBuilder object containing this valueQueryResponse response()
QueryResponse objectQueryResponseBuilder setCount(int count)
Copyright © 2020 SAP. All Rights Reserved.