public class PatchCommandData extends Object implements ICommandData
Constructor and Description |
---|
PatchCommandData() |
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.
|
PatchRequest[] |
getPatches()
Array of patches that will be applied to the document
|
PatchRequest[] |
getPatchesIfMissing()
Array of patches to apply to a default document if the document is missing
|
boolean |
isSkipPatchIfEtagMismatch()
If set to true, _and_ the Etag is specified then the behavior
of the patch in the case of etag mismatch is different.
|
void |
setAdditionalData(RavenJObject additionalData)
Additional command data.
|
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 |
setPatches(PatchRequest[] patches)
Array of patches that will be applied to the document
|
void |
setPatchesIfMissing(PatchRequest[] patchesIfMissing)
Array of patches to apply to a default document if the document is missing
|
void |
setSkipPatchIfEtagMismatch(boolean skipPatchIfEtagMismatch)
If set to true, _and_ the Etag is specified then the behavior
of the patch in the case of etag mismatch is different.
|
RavenJObject |
toJson()
Translates this instance to a Json object.
|
public boolean isSkipPatchIfEtagMismatch()
public void setSkipPatchIfEtagMismatch(boolean skipPatchIfEtagMismatch)
skipPatchIfEtagMismatch
- public RavenJObject getAdditionalData()
getAdditionalData
in interface ICommandData
public Etag getEtag()
getEtag
in interface ICommandData
public String getKey()
getKey
in interface ICommandData
public RavenJObject getMetadata()
getMetadata
in interface ICommandData
public HttpMethods getMethod()
getMethod
in interface ICommandData
public PatchRequest[] getPatches()
public PatchRequest[] getPatchesIfMissing()
public void setAdditionalData(RavenJObject additionalData)
setAdditionalData
in interface ICommandData
additionalData
- public void setEtag(Etag etag)
etag
- public void setKey(String key)
key
- public void setMetadata(RavenJObject metadata)
metadata
- public void setPatches(PatchRequest[] patches)
patches
- public void setPatchesIfMissing(PatchRequest[] patchesIfMissing)
patchesIfMissing
- public RavenJObject toJson()
toJson
in interface ICommandData
Copyright © 2016. All Rights Reserved.