BatchOperation

open class BatchOperation

A batch of content provider operations that is run as a single transaction.

Should not be used directly. Instead, use a subclass that defines maxOperationsPerYieldPoint for the respective provider.

Parameters

providerClient
maxOperationsPerYieldPoint

maximum number of operations per yield point (null for none)

Inheritors

Types

Link copied to clipboard
class BackReference(val originalIndex: Int)
Link copied to clipboard

Wrapper for ContentProviderOperation.Builder that allows to reset previously-set value back references.

Functions

Link copied to clipboard
fun commit(): Int

Commits all operations from queue and then empties the queue.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
operator fun plusAssign(operation: BatchOperation.CpoBuilder)

Enqueues an operation to the current batch.

operator fun plusAssign(operations: Iterable<BatchOperation.CpoBuilder>)

Shortcut for plusAssign of multiple operations.