public class ContentProviderClient extends Object
| Modifier and Type | Method and Description |
|---|---|
ContentProviderResult[] |
applyBatch(ArrayList<ContentProviderOperation> operations) |
int |
bulkInsert(Uri url,
ContentValues[] initialValues) |
int |
delete(Uri url,
String selection,
String[] selectionArgs) |
ContentProvider |
getLocalContentProvider() |
String[] |
getStreamTypes(Uri url,
String mimeTypeFilter) |
String |
getType(Uri url) |
Uri |
insert(Uri url,
ContentValues initialValues) |
AssetFileDescriptor |
openAssetFile(Uri url,
String mode) |
ParcelFileDescriptor |
openFile(Uri url,
String mode) |
AssetFileDescriptor |
openTypedAssetFileDescriptor(Uri uri,
String mimeType,
Bundle opts) |
Cursor |
query(Uri url,
String[] projection,
String selection,
String[] selectionArgs,
String sortOrder) |
Cursor |
query(Uri url,
String[] projection,
String selection,
String[] selectionArgs,
String sortOrder,
CancellationSignal cancellationSignal) |
boolean |
release() |
int |
update(Uri url,
ContentValues values,
String selection,
String[] selectionArgs) |
public Cursor query(Uri url, String[] projection, String selection, String[] selectionArgs, String sortOrder) throws RemoteException
RemoteExceptionpublic Cursor query(Uri url, String[] projection, String selection, String[] selectionArgs, String sortOrder, CancellationSignal cancellationSignal) throws RemoteException
RemoteExceptionpublic String getType(Uri url) throws RemoteException
RemoteExceptionpublic String[] getStreamTypes(Uri url, String mimeTypeFilter) throws RemoteException
RemoteExceptionpublic Uri insert(Uri url, ContentValues initialValues) throws RemoteException
RemoteExceptionpublic int bulkInsert(Uri url, ContentValues[] initialValues) throws RemoteException
RemoteExceptionpublic int delete(Uri url, String selection, String[] selectionArgs) throws RemoteException
RemoteExceptionpublic int update(Uri url, ContentValues values, String selection, String[] selectionArgs) throws RemoteException
RemoteExceptionpublic ParcelFileDescriptor openFile(Uri url, String mode) throws RemoteException, FileNotFoundException
RemoteExceptionFileNotFoundExceptionpublic AssetFileDescriptor openAssetFile(Uri url, String mode) throws RemoteException, FileNotFoundException
RemoteExceptionFileNotFoundExceptionpublic final AssetFileDescriptor openTypedAssetFileDescriptor(Uri uri, String mimeType, Bundle opts) throws RemoteException, FileNotFoundException
RemoteExceptionFileNotFoundExceptionpublic ContentProviderResult[] applyBatch(ArrayList<ContentProviderOperation> operations) throws RemoteException, OperationApplicationException
public boolean release()
public ContentProvider getLocalContentProvider()
Copyright © 2008-2013. All Rights Reserved.