public final class DocumentCreateOptions extends Object
Constructor and Description |
---|
DocumentCreateOptions() |
Modifier and Type | Method and Description |
---|---|
Boolean |
getKeepNull() |
Boolean |
getMergeObjects() |
OverwriteMode |
getOverwriteMode() |
Boolean |
getReturnNew() |
Boolean |
getReturnOld() |
Boolean |
getSilent() |
String |
getStreamTransactionId() |
Boolean |
getWaitForSync() |
DocumentCreateOptions |
keepNull(Boolean keepNull) |
DocumentCreateOptions |
mergeObjects(Boolean mergeObjects)
Only considered if
overwriteMode(OverwriteMode) is set to OverwriteMode.update |
DocumentCreateOptions |
overwriteMode(OverwriteMode overwriteMode) |
DocumentCreateOptions |
returnNew(Boolean returnNew) |
DocumentCreateOptions |
returnOld(Boolean returnOld) |
DocumentCreateOptions |
silent(Boolean silent) |
DocumentCreateOptions |
streamTransactionId(String streamTransactionId) |
DocumentCreateOptions |
waitForSync(Boolean waitForSync) |
public Boolean getWaitForSync()
public DocumentCreateOptions waitForSync(Boolean waitForSync)
waitForSync
- Wait until document has been synced to disk.public Boolean getReturnNew()
public DocumentCreateOptions returnNew(Boolean returnNew)
returnNew
- Return additionally the complete new document under the attribute new in the result.public Boolean getReturnOld()
public DocumentCreateOptions returnOld(Boolean returnOld)
returnOld
- Additionally return the complete old document under the attribute old in the result.public OverwriteMode getOverwriteMode()
public DocumentCreateOptions overwriteMode(OverwriteMode overwriteMode)
overwriteMode
- This parameter can be set to replace or update. If given it sets implicitly the overwrite
flag. In case it is set to update, the replace-insert becomes an update-insert. Otherwise
this option follows the rules of the overwrite parameter.public Boolean getSilent()
public DocumentCreateOptions silent(Boolean silent)
silent
- If set to true, an empty object will be returned as response. No meta-data will be returned for the
created document. This option can be used to save some network traffic.public String getStreamTransactionId()
public DocumentCreateOptions streamTransactionId(String streamTransactionId)
streamTransactionId
- If set, the operation will be executed within the transaction.public Boolean getMergeObjects()
public DocumentCreateOptions mergeObjects(Boolean mergeObjects)
overwriteMode(OverwriteMode)
is set to OverwriteMode.update
mergeObjects
- Controls whether objects (not arrays) will be merged if present in both the existing and
the patch
document. If set to false, the value in the patch document will overwrite the existing
document's
value. If set to true, objects will be merged. The default is true.public Boolean getKeepNull()
public DocumentCreateOptions keepNull(Boolean keepNull)
keepNull
- If the intention is to delete existing attributes with the update-insert command, the URL
query parameter keepNull can be used with a value of false. This will modify the behavior of
the patch command to remove any attributes from the existing document that are contained in
the patch document with an attribute value of null. This option controls the update-insert
behavior only.Copyright © 2016–2023 ArangoDB GmbH. All rights reserved.