Add an operation to this batch
Add an operation to this batch
Fluid interface for adding a failure callback to this batch operation.
Fluid interface for adding a failure callback to this batch operation. The thrown exception is logged.
Fluid interface for adding a success callback to this batch operation.
Fluid interface for adding a success callback to this batch operation.
Fluid interface for adding a success callback to this batch operation.
Fluid interface for adding a success callback to this batch
operation. The argument is the returned array of
ContentProviderResult
s.
Fluid interface for adding a failure callback to this batch operation.
Fluid interface for adding a failure callback to this batch operation. The argument is the exception that was thrown; this will typically be either an OperationApplicationException or a RemoteException.
The thrown exception will have already been logged whatever else the callback decides to do with it.
A subclass of BatchAction that allows callers to batch up
Save
andDelete
operations in the ORM. You can still also add rawContentProviderOperation
s, including those of other types, most notably "assert".Note that a
Save
operation will translate into either an insert or update, as appropriate.Note also that if you add a
Save
of, say, an unsavedRawContact
to a batch, and then addSave
s ofContactData
objects which refer to theRawContact
, references to the ID of theRawContact
will automatically be turned into back-references. This allows a collection of related objects to be inserted in a single batch, per recommended best practice for dealing with Contacts (and probably other things).