diff options
author | Fred Quintana <fredq@google.com> | 2009-05-15 15:10:40 -0700 |
---|---|---|
committer | Fred Quintana <fredq@google.com> | 2009-05-22 14:17:48 -0700 |
commit | 8943737692169f564cd34a9c8d471f3a5d438712 (patch) | |
tree | 7b017cbed472235c15d32e694b1fa18c5446c751 /core/java/android/content/IContentProvider.java | |
parent | fc5095f44ba46b57f4ef6179ee4d69ce3a7fe69a (diff) | |
download | frameworks_base-8943737692169f564cd34a9c8d471f3a5d438712.zip frameworks_base-8943737692169f564cd34a9c8d471f3a5d438712.tar.gz frameworks_base-8943737692169f564cd34a9c8d471f3a5d438712.tar.bz2 |
add ipc support to batching
Diffstat (limited to 'core/java/android/content/IContentProvider.java')
-rw-r--r-- | core/java/android/content/IContentProvider.java | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/core/java/android/content/IContentProvider.java b/core/java/android/content/IContentProvider.java index b4d1865..f82c982 100644 --- a/core/java/android/content/IContentProvider.java +++ b/core/java/android/content/IContentProvider.java @@ -50,16 +50,18 @@ public interface IContentProvider extends IInterface { public Uri insert(Uri url, ContentValues initialValues) throws RemoteException; public int bulkInsert(Uri url, ContentValues[] initialValues) throws RemoteException; - public Uri[] bulkInsertEntities(Uri uri, Entity[] entities) throws RemoteException; + public Uri insertEntity(Uri uri, Entity entities) throws RemoteException; public int delete(Uri url, String selection, String[] selectionArgs) throws RemoteException; public int update(Uri url, ContentValues values, String selection, String[] selectionArgs) throws RemoteException; - public int[] bulkUpdateEntities(Uri uri, Entity[] entities) throws RemoteException; + public int updateEntity(Uri uri, Entity entity) throws RemoteException; public ParcelFileDescriptor openFile(Uri url, String mode) throws RemoteException, FileNotFoundException; public AssetFileDescriptor openAssetFile(Uri url, String mode) throws RemoteException, FileNotFoundException; + public ContentProviderResult[] applyBatch(ContentProviderOperation[] operations) + throws RemoteException, OperationApplicationException; /* IPC constants */ static final String descriptor = "android.content.IContentProvider"; @@ -72,7 +74,8 @@ public interface IContentProvider extends IInterface { static final int BULK_INSERT_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION + 12; static final int OPEN_FILE_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION + 13; static final int OPEN_ASSET_FILE_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION + 14; - static final int BULK_INSERT_ENTITIES_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION + 16; - static final int BULK_UPDATE_ENTITIES_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION + 17; + static final int INSERT_ENTITIES_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION + 16; + static final int UPDATE_ENTITIES_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION + 17; static final int QUERY_ENTITIES_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION + 18; + static final int APPLY_BATCH_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION + 19; } |