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 ID.

Link copied to clipboard
fun exec(): DittoDocument?

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

Link copied to clipboard
fun remove(): Boolean

Remove the document with the matching ID.

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

Update the document with the matching ID.

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 ID of the document 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