java.lang.Object | |
↳ | android.content.ContentProviderOperation |
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ContentProviderOperation.Builder | Used to add parameters to a ContentProviderOperation . |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.os.Parcelable
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CREATOR |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Applies this operation using the given provider.
| |||||||||||
Describe the kinds of special objects contained in this Parcelable's
marshalled representation.
| |||||||||||
Create a
ContentProviderOperation.Builder suitable for building a
ContentProviderOperation to assert a set of values as provided
through withValues(ContentValues) . | |||||||||||
Create a
ContentProviderOperation.Builder suitable for building a delete ContentProviderOperation . | |||||||||||
Create a
ContentProviderOperation.Builder suitable for building an insert ContentProviderOperation . | |||||||||||
Create a
ContentProviderOperation.Builder suitable for building an update ContentProviderOperation . | |||||||||||
The Selection Arguments back references are represented as a Map of Integer->Integer where
the key is an index into the selection argument array (see
withSelection(String, String[]) )
and the value is the index of the previous result that should be used for that selection
argument array slot. | |||||||||||
The ContentValues back references are represented as a ContentValues object where the
key refers to a column and the value is an index of the back reference whose
valued should be associated with the column.
| |||||||||||
Returns a string containing a concise, human-readable description of this
object.
| |||||||||||
Flatten this object in to a Parcel.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
android.os.Parcelable
|
Applies this operation using the given provider. The backRefs array is used to resolve any
back references that were requested using
withValueBackReferences(ContentValues)
and
withSelectionBackReference(int, int)
.
provider | the ContentProvider on which this batch is applied |
---|---|
backRefs | a ContentProviderResult array that will be consulted
to resolve any requested back references. |
numBackRefs | the number of valid results on the backRefs array. |
ContentProviderResult
that contains either the Uri
of the inserted
row if this was an insert otherwise the number of rows affected.OperationApplicationException | thrown if either the insert fails or if the number of rows affected didn't match the expected count |
---|
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
Create a ContentProviderOperation.Builder
suitable for building a
ContentProviderOperation
to assert a set of values as provided
through withValues(ContentValues)
.
Create a ContentProviderOperation.Builder
suitable for building a delete ContentProviderOperation
.
uri | The Uri that is the target of the delete. |
---|
Create a ContentProviderOperation.Builder
suitable for building an insert ContentProviderOperation
.
uri | The Uri that is the target of the insert. |
---|
Create a ContentProviderOperation.Builder
suitable for building an update ContentProviderOperation
.
uri | The Uri that is the target of the update. |
---|
The Selection Arguments back references are represented as a Map of Integer->Integer where
the key is an index into the selection argument array (see withSelection(String, String[])
)
and the value is the index of the previous result that should be used for that selection
argument array slot.
This is intended to be a private method but it is exposed for unit testing purposes
backRefs | an array of previous results |
---|---|
numBackRefs | the number of valid previous results in backRefs |
The ContentValues back references are represented as a ContentValues object where the key refers to a column and the value is an index of the back reference whose valued should be associated with the column.
This is intended to be a private method but it is exposed for unit testing purposes
backRefs | an array of previous results |
---|---|
numBackRefs | the number of valid previous results in backRefs |
Returns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation is equivalent to the following expression:
getClass().getName() + '@' + Integer.toHexString(hashCode())
See Writing a useful
toString
method
if you intend implementing your own toString
method.
Flatten this object in to a Parcel.
dest | The Parcel in which the object should be written. |
---|---|
flags | Additional flags about how the object should be written.
May be 0 or PARCELABLE_WRITE_RETURN_VALUE .
|