public class SaveRequest extends DocRequest implements WithRange, WithProjection
WithRange.Range| Constructor and Description |
|---|
SaveRequest() |
| Modifier and Type | Method and Description |
|---|---|
static SaveRequest |
fromJson(com.fasterxml.jackson.databind.node.ObjectNode node)
Parses a save request from a JSON object
|
Long |
getFrom()
Specifies the index in the result set to start returning documents.
|
CRUDOperation |
getOperation() |
Projection |
getProjection() |
Projection |
getReturnFields()
Specifies the fields of the inserted entities to return.
|
Long |
getTo()
Specifies the last index of the document in the result set to be
returned.
|
boolean |
isUpsert()
If true, documents that don't exist will be inserted
|
void |
setFrom(Long from) |
void |
setReturnFields(Projection p)
Specifies the fields of the inserted entities to return.
|
void |
setTo(Long to) |
void |
setUpsert(boolean b)
If true, documents that don't exist will be inserted
|
com.fasterxml.jackson.databind.JsonNode |
toJson()
Returns json representation of this
|
getEntityData, parse, setEntityDatagetClientId, getEntityVersion, getExecution, setClientId, setEntityVersion, setExecution, shallowCopyFromgetFactory, getSourceNode, toStringpublic Projection getReturnFields()
public Projection getProjection()
getProjection in interface WithProjectionpublic void setReturnFields(Projection p)
public boolean isUpsert()
public void setUpsert(boolean b)
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()
toJson in class DocRequestpublic static SaveRequest fromJson(com.fasterxml.jackson.databind.node.ObjectNode node)
Copyright © 2016. All rights reserved.