java.lang.Object | |
↳ | android.content.ContentProviderOperation |
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ContentProviderOperation.Builder | Used to add parameters to a ContentProviderOperation . |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creator<ContentProviderOperation> | CREATOR |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.os.Parcelable
|
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.
| |||||||||||
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.
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.
backRefs | an array of previous results |
---|---|
numBackRefs | the number of valid previous results in backRefs |
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 .
|