public class DocumentCreateOptions extends Object
Constructor and Description |
---|
DocumentCreateOptions() |
Modifier and Type | Method and Description |
---|---|
Boolean |
getOverwrite() |
OverwriteMode |
getOverwriteMode() |
Boolean |
getReturnNew() |
Boolean |
getReturnOld() |
Boolean |
getSilent() |
String |
getStreamTransactionId() |
Boolean |
getWaitForSync() |
DocumentCreateOptions |
overwrite(Boolean overwrite) |
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. Only
available if the overwrite
option is used.public Boolean getOverwrite()
public DocumentCreateOptions overwrite(Boolean overwrite)
overwrite
- If set to true, the insert becomes a replace-insert. If a document with the same _key
already exists the new document is not rejected with unique constraint violated but will replace
the old document.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.Copyright © 2016–2020 ArangoDB GmbH. All rights reserved.