public class UpdateRequest extends Request implements WithQuery, WithProjection, WithRange
WithRange.Range| 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
|
Long |
getFrom()
Specifies the index in the result set to start returning documents.
|
CRUDOperation |
getOperation() |
Projection |
getProjection() |
QueryExpression |
getQuery()
The query specifying which documents to be updated
|
Projection |
getReturnFields()
The fields to return from the updated documents
|
Long |
getTo()
Specifies the last index of the document in the result set to be
returned.
|
UpdateExpression |
getUpdateExpression()
The expression specifying how to modify the documents
|
void |
setFrom(Long from) |
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 |
setTo(Long to) |
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 Projection getProjection()
getProjection in interface WithProjectionpublic UpdateExpression getUpdateExpression()
public void setUpdateExpression(UpdateExpression x)
public QueryExpression getQuery()
public void setQuery(QueryExpression q)
public Long getFrom()
WithRangepublic void setFrom(Long from)
public Long getTo()
WithRangepublic void setTo(Long to)
public CRUDOperation getOperation()
getOperation in class Requestpublic com.fasterxml.jackson.databind.JsonNode toJson()
public static UpdateRequest fromJson(com.fasterxml.jackson.databind.node.ObjectNode node)
Copyright © 2016. All rights reserved.