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
ContentProviderResults.
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
SaveandDeleteoperations in the ORM. You can still also add rawContentProviderOperations, including those of other types, most notably "assert".Note that a
Saveoperation will translate into either an insert or update, as appropriate.Note also that if you add a
Saveof, say, an unsavedRawContactto a batch, and then addSaves ofContactDataobjects which refer to theRawContact, references to the ID of theRawContactwill 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).