public class SaveRequest extends DocRequest
| 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
|
Projection |
getReturnFields()
Specifies the fields of the inserted entities to return.
|
boolean |
isUpsert()
If true, documents that don't exist will be inserted
|
void |
setReturnFields(Projection p)
Specifies the fields of the inserted entities to return.
|
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 void setReturnFields(Projection p)
public boolean isUpsert()
public void setUpsert(boolean b)
public com.fasterxml.jackson.databind.JsonNode toJson()
toJson in class DocRequestpublic static SaveRequest fromJson(com.fasterxml.jackson.databind.node.ObjectNode node)
Copyright © 2015. All rights reserved.