public class UpdateRequest extends Request
| Constructor and Description |
|---|
UpdateRequest() |
| Modifier and Type | Method and Description |
|---|---|
static UpdateRequest |
fromJson(com.fasterxml.jackson.databind.node.ObjectNode node)
Parses an update request from a Json object
|
QueryExpression |
getQuery()
The query specifying which documents to be updated
|
Projection |
getReturnFields()
The fields to return from the updated documents
|
UpdateExpression |
getUpdateExpression()
The expression specifying how to modify the documents
|
void |
setQuery(QueryExpression q)
The query specifying which documents to be updated
|
void |
setReturnFields(Projection p)
The fields to return from the updated documents
|
void |
setUpdateExpression(UpdateExpression x)
The expression specifying how to modify the documents
|
com.fasterxml.jackson.databind.JsonNode |
toJson()
Returns a json representation of this
|
getClientId, getEntityVersion, getExecution, parse, setClientId, setEntityVersion, setExecution, shallowCopyFromgetFactory, getSourceNode, toStringpublic Projection getReturnFields()
public void setReturnFields(Projection p)
public UpdateExpression getUpdateExpression()
public void setUpdateExpression(UpdateExpression x)
public QueryExpression getQuery()
public void setQuery(QueryExpression q)
public com.fasterxml.jackson.databind.JsonNode toJson()
public static UpdateRequest fromJson(com.fasterxml.jackson.databind.node.ObjectNode node)
Copyright © 2015. All rights reserved.