Package com.c8db.model
Class DocumentCreateOptions
- java.lang.Object
-
- com.c8db.model.DocumentCreateOptions
-
public class DocumentCreateOptions extends Object
-
-
Constructor Summary
Constructors Constructor Description DocumentCreateOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleangetOverwrite()BooleangetReturnNew()BooleangetReturnOld()BooleangetSilent()StringgetStreamTransactionId()BooleangetWaitForSync()DocumentCreateOptionsoverwrite(Boolean overwrite)DocumentCreateOptionsreturnNew(Boolean returnNew)DocumentCreateOptionsreturnOld(Boolean returnOld)DocumentCreateOptionssilent(Boolean silent)DocumentCreateOptionsstreamTransactionId(String streamTransactionId)DocumentCreateOptionswaitForSync(Boolean waitForSync)
-
-
-
Method Detail
-
getWaitForSync
public Boolean getWaitForSync()
-
waitForSync
public DocumentCreateOptions waitForSync(Boolean waitForSync)
- Parameters:
waitForSync- Wait until document has been synced to disk.- Returns:
- options
-
getReturnNew
public Boolean getReturnNew()
-
returnNew
public DocumentCreateOptions returnNew(Boolean returnNew)
- Parameters:
returnNew- Return additionally the complete new document under the attribute new in the result.- Returns:
- options
-
getReturnOld
public Boolean getReturnOld()
-
returnOld
public DocumentCreateOptions returnOld(Boolean returnOld)
- Parameters:
returnOld- Additionally return the complete old document under the attribute old in the result. Only available if theoverwriteoption is used.- Returns:
- options
- Since:
- ArangoDB 3.4
-
getOverwrite
public Boolean getOverwrite()
-
overwrite
public DocumentCreateOptions overwrite(Boolean overwrite)
- Parameters:
overwrite- If set to true, the insert becomes a replace-insert. If a document with the same_keyalready exists the new document is not rejected with unique constraint violated but will replace the old document.- Returns:
- options
- Since:
- ArangoDB 3.4
-
getSilent
public Boolean getSilent()
-
silent
public DocumentCreateOptions silent(Boolean silent)
- Parameters:
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.- Returns:
- options
-
getStreamTransactionId
public String getStreamTransactionId()
-
streamTransactionId
public DocumentCreateOptions streamTransactionId(String streamTransactionId)
- Parameters:
streamTransactionId- If set, the operation will be executed within the transaction.- Returns:
- options
- Since:
- ArangoDB 3.5.0
-
-