Class DocumentCreateOptions


  • public class DocumentCreateOptions
    extends Object
    • Constructor Detail

      • DocumentCreateOptions

        public DocumentCreateOptions()
    • 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 the overwrite option 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 _key already 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