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

Link copied to clipboard
fun evict(): Boolean

Evict the document with the matching identifier.

Link copied to clipboard
fun exec(): DittoDocument?

Execute the find operation to return the document with the matching identifier.

Link copied to clipboard
fun remove(): Boolean

Remove the document with the matching identifier.

Link copied to clipboard
fun update(closure: (DittoMutableDocument?) -> Unit): List<DittoUpdateResult>
fun update(updater: DittoSingleMutableDocumentUpdater): List<DittoUpdateResult>

Update the document with the matching identifier.

Properties

Link copied to clipboard
val collectionName: String

the name of the collection that the operation will be performed on.

Link copied to clipboard
val dittoHandle: SWIGTYPE_p_CDitto
Link copied to clipboard
val docId: DittoDocumentId

the document identifier that the operation will be performed on.

Link copied to clipboard
val objectMapper: ObjectMapper
Link copied to clipboard
val objectReader: ObjectReader
Link copied to clipboard
val writeTxn: SWIGTYPE_p_CWriteTransaction