public interface AddStatement extends Statement<AddStatement,AddResult>
Statement.LockContention
Modifier and Type | Method | Description |
---|---|---|
AddStatement |
add(DbDoc... documents) |
Add a sequence of DbDocs.
|
AddStatement |
add(String jsonString) |
Add a document as a JSON string.
|
boolean |
isUpsert() |
Check the upsert flag.
|
AddStatement |
setUpsert(boolean upsert) |
Set upsert flag on this statement.
|
bind, bind, bind, bind, clearBindings, execute, executeAsync
AddStatement add(String jsonString)
jsonString
- document as a JSON stringAddStatement
AddStatement add(DbDoc... documents)
documents
- one or more DbDoc
documentsAddStatement
boolean isUpsert()
AddStatement setUpsert(boolean upsert)
Collection.addOrReplaceOne(String, DbDoc)
method.upsert
- if true then this statement will be executed as an upsert statementAddStatement