public class InsertionRequest extends DocRequest implements WithProjection, WithRange
WithRange.Range| Constructor and Description |
|---|
InsertionRequest() |
| Modifier and Type | Method and Description |
|---|---|
static InsertionRequest |
fromJson(com.fasterxml.jackson.databind.node.ObjectNode node)
Parses an insertion 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.
|
void |
setFrom(Long from) |
void |
setReturnFields(Projection p)
Specifies the fields of the inserted entities to return.
|
void |
setTo(Long to) |
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 void setReturnFields(Projection p)
public Projection getProjection()
getProjection in interface WithProjectionpublic 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 InsertionRequest fromJson(com.fasterxml.jackson.databind.node.ObjectNode node)
Copyright © 2016. All rights reserved.