DittoWriteTransactionPendingIDSpecificOperation

class DittoWriteTransactionPendingIDSpecificOperation

These objects are returned when using findByID functionality on DittoScopedWriteTransactions. You can use them to perform updates on a document and remove or evict a document.

Functions

evict
Link copied to clipboard
fun evict(): Boolean
Evict the document with the matching ID.
exec
Link copied to clipboard
fun exec(): DittoDocument?
Execute the find operation to return the document with the matching ID.
remove
Link copied to clipboard
fun remove(): Boolean
Remove the document with the matching ID.
update
Link copied to clipboard
fun update(closure: (DittoMutableDocument?) -> Unit): List<DittoUpdateResult>
Update the document with the matching ID.
fun update(updater: DittoSingleMutableDocumentUpdater): List<DittoUpdateResult>
Update the document with the matching ID.

Properties

collectionName
Link copied to clipboard
val collectionName: String
the name of the collection that the operation will be performed on.
dittoHandle
Link copied to clipboard
val dittoHandle: SWIGTYPE_p_CDitto
docID
Link copied to clipboard
val docID: DittoDocumentID
the ID of the document that the operation will be performed on.
objectMapper
Link copied to clipboard
val objectMapper: ObjectMapper
objectReader
Link copied to clipboard
val objectReader: ObjectReader
writeTxn
Link copied to clipboard
val writeTxn: SWIGTYPE_p_CWriteTransaction