public class ScriptedPatchCommandData extends Object implements ICommandData
Constructor and Description |
---|
ScriptedPatchCommandData() |
Modifier and Type | Method and Description |
---|---|
RavenJObject |
getAdditionalData()
Additional command data.
|
Etag |
getEtag()
Current document etag, used for concurrency checks (null to skip check).
|
String |
getKey()
Key of a document to patch.
|
RavenJObject |
getMetadata()
RavenJObject representing document's metadata.
|
HttpMethods |
getMethod()
Returns operation method.
|
ScriptedPatchRequest |
getPatch()
ScriptedPatchRequest (using JavaScript) that is used to patch the document.
|
ScriptedPatchRequest |
getPatchIfMissing()
ScriptedPatchRequest (using JavaScript) that is used to patch a default document if the document is missing.
|
boolean |
isDebugMode()
Indicates in the operation should be run in debug mode.
|
void |
setAdditionalData(RavenJObject additionalData)
Additional command data.
|
void |
setDebugMode(boolean debugMode)
Indicates in the operation should be run in debug mode.
|
void |
setEtag(Etag etag)
Current document etag, used for concurrency checks (null to skip check).
|
void |
setKey(String key)
Key of a document to patch.
|
void |
setMetadata(RavenJObject metadata)
RavenJObject representing document's metadata.
|
void |
setPatch(ScriptedPatchRequest patch)
ScriptedPatchRequest (using JavaScript) that is used to patch the document.
|
void |
setPatchIfMissing(ScriptedPatchRequest patchIfMissing)
ScriptedPatchRequest (using JavaScript) that is used to patch a default document if the document is missing.
|
RavenJObject |
toJson()
Translates this instance to a Json object.
|
public HttpMethods getMethod()
getMethod
in interface ICommandData
public ScriptedPatchRequest getPatch()
public void setPatch(ScriptedPatchRequest patch)
patch
- public ScriptedPatchRequest getPatchIfMissing()
public void setPatchIfMissing(ScriptedPatchRequest patchIfMissing)
patchIfMissing
- public String getKey()
getKey
in interface ICommandData
public void setKey(String key)
key
- public Etag getEtag()
getEtag
in interface ICommandData
public void setEtag(Etag etag)
etag
- public RavenJObject getMetadata()
getMetadata
in interface ICommandData
public void setMetadata(RavenJObject metadata)
metadata
- public boolean isDebugMode()
public void setDebugMode(boolean debugMode)
debugMode
- public RavenJObject getAdditionalData()
getAdditionalData
in interface ICommandData
public void setAdditionalData(RavenJObject additionalData)
setAdditionalData
in interface ICommandData
additionalData
- public RavenJObject toJson()
toJson
in interface ICommandData
Copyright © 2016. All Rights Reserved.