ditto / live.ditto / DittoWriteTransactionPendingIDSpecificOperation

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.

Properties

collectionName

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

val collectionName: String

dittoHandle

val dittoHandle: <ERROR CLASS>

docID

the ID of the document that the operation will be performed on.

val docID: String

objectMapper

val objectMapper: ObjectMapper

objectReader

val objectReader: ObjectReader

writeTxn

val writeTxn: <ERROR CLASS>

Functions

evict

Evict the document with the matching ID.

fun evict(): Boolean

remove

Remove the document with the matching ID.

fun remove(): Boolean

update

Update the document with the matching ID.

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