public class Response extends JsonObject
Modifier and Type | Class and Description |
---|---|
static class |
Response.ResponseBuilder |
Constructor and Description |
---|
Response() |
Modifier and Type | Method and Description |
---|---|
static Response |
fromJson(com.fasterxml.jackson.databind.node.ObjectNode node)
Parses a response from a Json object
|
List<DataError> |
getDataErrors()
Errors related to each document
|
com.fasterxml.jackson.databind.JsonNode |
getEntityData()
Returns the entity data resulting from the call.
|
List<Error> |
getErrors()
Errors related to the operation
|
long |
getMatchCount()
Number of documents that matched the search cResponseriteria
|
long |
getModifiedCount()
Number of documents inserted/updated/deleted
|
SessionInfo |
getSessionInfo()
If the operation starts a session or uses an existing session, the
session information
|
OperationStatus |
getStatus()
Status of the completed operation
|
String |
getTaskHandle()
If the operation continues asynchronously, the task handle can be used to
retrieve status information, and the result of the call once the
operation is complete
|
void |
setEntityData(com.fasterxml.jackson.databind.JsonNode node)
Returns the entity data resulting from the call.
|
void |
setMatchCount(long l)
Number of documents that matched the search criteria
|
void |
setModifiedCount(long l)
Number of documents inserted/updated/deleted
|
void |
setSessionInfo(SessionInfo s)
If the operation starts a session or uses an existing session, the
session information
|
void |
setStatus(OperationStatus s)
Status of the completed operation
|
void |
setTaskHandle(String t)
If the operation continues asynchronously, the task handle can be used to
retrieve status information, and the result of the call once the
operation is complete
|
com.fasterxml.jackson.databind.JsonNode |
toJson()
Returns JSON representation of this
|
getFactory, getSourceNode, toString
public OperationStatus getStatus()
public void setStatus(OperationStatus s)
public long getModifiedCount()
public void setModifiedCount(long l)
public long getMatchCount()
public void setMatchCount(long l)
public String getTaskHandle()
public void setTaskHandle(String t)
public SessionInfo getSessionInfo()
public void setSessionInfo(SessionInfo s)
public com.fasterxml.jackson.databind.JsonNode getEntityData()
public void setEntityData(com.fasterxml.jackson.databind.JsonNode node)
public static Response fromJson(com.fasterxml.jackson.databind.node.ObjectNode node)
public com.fasterxml.jackson.databind.JsonNode toJson()
toJson
in class JsonObject
Copyright © 2014. All rights reserved.