/**@class android.content.ContentProviderOperation implements android.os.Parcelable @extends java.lang.Object Represents a single operation to be performed as part of a batch of operations. @see ContentProvider#applyBatch(ArrayList) */ var ContentProviderOperation = { /**@hide exposed for unit tests */ TYPE_INSERT : "1", /**@hide exposed for unit tests */ TYPE_UPDATE : "2", /**@hide exposed for unit tests */ TYPE_DELETE : "3", /**@hide exposed for unit tests */ TYPE_ASSERT : "4", /***/ CREATOR : "null", /** @hide */ getWithoutUserIdInUri : function( ) {}, /** */ writeToParcel : function( ) {}, /**Create a {@link android.content.ContentProviderOperation.Builder} suitable for building an insert {@link android.content.ContentProviderOperation}. @param {Object {Uri}} uri The {@link Uri} that is the target of the insert. @return {Object {android.content.ContentProviderOperation.Builder}} a {@link Builder} */ newInsert : function( ) {}, /**Create a {@link android.content.ContentProviderOperation.Builder} suitable for building an update {@link android.content.ContentProviderOperation}. @param {Object {Uri}} uri The {@link Uri} that is the target of the update. @return {Object {android.content.ContentProviderOperation.Builder}} a {@link Builder} */ newUpdate : function( ) {}, /**Create a {@link android.content.ContentProviderOperation.Builder} suitable for building a delete {@link android.content.ContentProviderOperation}. @param {Object {Uri}} uri The {@link Uri} that is the target of the delete. @return {Object {android.content.ContentProviderOperation.Builder}} a {@link Builder} */ newDelete : function( ) {}, /**Create a {@link android.content.ContentProviderOperation.Builder} suitable for building a {@link android.content.ContentProviderOperation} to assert a set of values as provided through {@link android.content.ContentProviderOperation.Builder#withValues(ContentValues)}. */ newAssertQuery : function( ) {}, /**Gets the Uri for the target of the operation. */ getUri : function( ) {}, /**Returns true if the operation allows yielding the database to other transactions if the database is contended. @see android.database.sqlite.SQLiteDatabase#yieldIfContendedSafely() */ isYieldAllowed : function( ) {}, /** @hide exposed for unit tests */ getType : function( ) {}, /**Returns true if the operation represents an insertion. @see #newInsert */ isInsert : function( ) {}, /**Returns true if the operation represents a deletion. @see #newDelete */ isDelete : function( ) {}, /**Returns true if the operation represents an update. @see #newUpdate */ isUpdate : function( ) {}, /**Returns true if the operation represents an assert query. @see #newAssertQuery */ isAssertQuery : function( ) {}, /**Returns true if the operation represents an insertion, deletion, or update. @see #isInsert @see #isDelete @see #isUpdate */ isWriteOperation : function( ) {}, /**Returns true if the operation represents an assert query. @see #isAssertQuery */ isReadOperation : function( ) {}, /**Applies this operation using the given provider. The backRefs array is used to resolve any back references that were requested using {@link android.content.ContentProviderOperation.Builder#withValueBackReferences(ContentValues)} and {@link android.content.ContentProviderOperation.Builder#withSelectionBackReference}. @param {Object {ContentProvider}} provider the {@link ContentProvider} on which this batch is applied @param {Object {android.content.ContentProviderResult[]}} backRefs a {@link ContentProviderResult} array that will be consulted to resolve any requested back references. @param {Number} numBackRefs the number of valid results on the backRefs array. @return {Object {android.content.ContentProviderResult}} a {@link ContentProviderResult} that contains either the {@link Uri} of the inserted row if this was an insert otherwise the number of rows affected. @throws OperationApplicationException thrown if either the insert fails or if the number of rows affected didn't match the expected count */ apply : function( ) {}, /**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. <p> This is intended to be a private method but it is exposed for unit testing purposes @param {Object {android.content.ContentProviderResult[]}} backRefs an array of previous results @param {Number} numBackRefs the number of valid previous results in backRefs @return {Object {android.content.ContentValues}} the ContentValues that should be used in this operation application after expansion of back references. This can be called if either mValues or mValuesBackReferences is null */ resolveValueBackReferences : function( ) {}, /**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 {@link android.content.ContentProviderOperation.Builder#withSelection}) and the value is the index of the previous result that should be used for that selection argument array slot. <p> This is intended to be a private method but it is exposed for unit testing purposes @param {Object {android.content.ContentProviderResult[]}} backRefs an array of previous results @param {Number} numBackRefs the number of valid previous results in backRefs @return {String} the ContentValues that should be used in this operation application after expansion of back references. This can be called if either mValues or mValuesBackReferences is null */ resolveSelectionArgsBackReferences : function( ) {}, /** */ toString : function( ) {}, /** */ describeContents : function( ) {}, };