public class DocumentUpdateOptions extends Object
Constructor and Description |
---|
DocumentUpdateOptions() |
Modifier and Type | Method and Description |
---|---|
String |
getIfMatch() |
Boolean |
getIgnoreRevs() |
Boolean |
getKeepNull() |
Boolean |
getMergeObjects() |
Boolean |
getReturnNew() |
Boolean |
getReturnOld() |
Boolean |
getSerializeNull() |
Boolean |
getSilent() |
String |
getStreamTransactionId() |
Boolean |
getWaitForSync() |
DocumentUpdateOptions |
ifMatch(String ifMatch) |
DocumentUpdateOptions |
ignoreRevs(Boolean ignoreRevs) |
DocumentUpdateOptions |
keepNull(Boolean keepNull) |
DocumentUpdateOptions |
mergeObjects(Boolean mergeObjects) |
DocumentUpdateOptions |
returnNew(Boolean returnNew) |
DocumentUpdateOptions |
returnOld(Boolean returnOld) |
DocumentUpdateOptions |
serializeNull(Boolean serializeNull) |
DocumentUpdateOptions |
silent(Boolean silent) |
DocumentUpdateOptions |
streamTransactionId(String streamTransactionId) |
DocumentUpdateOptions |
waitForSync(Boolean waitForSync) |
public Boolean getKeepNull()
public DocumentUpdateOptions keepNull(Boolean keepNull)
keepNull
- If the intention is to delete existing attributes with the patch 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.public Boolean getMergeObjects()
public DocumentUpdateOptions mergeObjects(Boolean mergeObjects)
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 getWaitForSync()
public DocumentUpdateOptions waitForSync(Boolean waitForSync)
waitForSync
- Wait until document has been synced to disk.public Boolean getIgnoreRevs()
public DocumentUpdateOptions 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 updated if the current revision is the one specified.public String getIfMatch()
public DocumentUpdateOptions ifMatch(String ifMatch)
ifMatch
- update a document based on target revisionpublic Boolean getReturnNew()
public DocumentUpdateOptions returnNew(Boolean returnNew)
returnNew
- Return additionally the complete new document under the attribute new in the result.public Boolean getReturnOld()
public DocumentUpdateOptions returnOld(Boolean returnOld)
returnOld
- Return additionally the complete previous revision of the changed document under the attribute old in
the result.public Boolean getSerializeNull()
public DocumentUpdateOptions serializeNull(Boolean serializeNull)
serializeNull
- By default, or if this is set to true, all fields of the document which have null values are
serialized to VelocyPack otherwise they are excluded from serialization. Use this to update single
fields from a stored document.public Boolean getSilent()
public DocumentUpdateOptions 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 DocumentUpdateOptions streamTransactionId(String streamTransactionId)
streamTransactionId
- If set, the operation will be executed within the transaction.Copyright © 2016–2021 ArangoDB GmbH. All rights reserved.