public class DocumentReplaceOptions extends Object
Constructor and Description |
---|
DocumentReplaceOptions() |
Modifier and Type | Method and Description |
---|---|
String |
getIfMatch() |
Boolean |
getIgnoreRevs() |
Boolean |
getReturnNew() |
Boolean |
getReturnOld() |
Boolean |
getSilent() |
Boolean |
getWaitForSync() |
DocumentReplaceOptions |
ifMatch(String ifMatch) |
DocumentReplaceOptions |
ignoreRevs(Boolean ignoreRevs) |
DocumentReplaceOptions |
returnNew(Boolean returnNew) |
DocumentReplaceOptions |
returnOld(Boolean returnOld) |
DocumentReplaceOptions |
silent(Boolean silent) |
DocumentReplaceOptions |
waitForSync(Boolean waitForSync) |
public Boolean getWaitForSync()
public DocumentReplaceOptions waitForSync(Boolean waitForSync)
waitForSync
- Wait until document has been synced to disk.public Boolean getIgnoreRevs()
public DocumentReplaceOptions ignoreRevs(Boolean ignoreRevs)
ignoreRevs
- By default, or if this is set to true, the _rev attributes in the given document is ignored. If this
is set to false, then the _rev attribute given in the body document is taken as a precondition. The
document is only replaced if the current revision is the one specified.public String getIfMatch()
public DocumentReplaceOptions ifMatch(String ifMatch)
ifMatch
- replace a document based on target revisionpublic Boolean getReturnNew()
public DocumentReplaceOptions returnNew(Boolean returnNew)
returnNew
- Return additionally the complete new document under the attribute new in the result.public Boolean getReturnOld()
public DocumentReplaceOptions returnOld(Boolean returnOld)
returnOld
- Return additionally the complete previous revision of the changed document under the attribute old in
the result.public Boolean getSilent()
public DocumentReplaceOptions 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.Copyright © 2016–2021 ArangoDB GmbH. All rights reserved.