android.content
Class ContentProviderClient
java.lang.Object
android.content.ContentProviderClient
public class ContentProviderClient
- extends Object
Method Summary |
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)
|
boolean |
release()
|
int |
update(Uri url,
ContentValues values,
String selection,
String[] selectionArgs)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
query
public Cursor query(Uri url,
String[] projection,
String selection,
String[] selectionArgs,
String sortOrder)
throws RemoteException
- Throws:
RemoteException
getType
public String getType(Uri url)
throws RemoteException
- Throws:
RemoteException
getStreamTypes
public String[] getStreamTypes(Uri url,
String mimeTypeFilter)
throws RemoteException
- Throws:
RemoteException
insert
public Uri insert(Uri url,
ContentValues initialValues)
throws RemoteException
- Throws:
RemoteException
bulkInsert
public int bulkInsert(Uri url,
ContentValues[] initialValues)
throws RemoteException
- Throws:
RemoteException
delete
public int delete(Uri url,
String selection,
String[] selectionArgs)
throws RemoteException
- Throws:
RemoteException
update
public int update(Uri url,
ContentValues values,
String selection,
String[] selectionArgs)
throws RemoteException
- Throws:
RemoteException
openFile
public ParcelFileDescriptor openFile(Uri url,
String mode)
throws RemoteException,
FileNotFoundException
- Throws:
RemoteException
FileNotFoundException
openAssetFile
public AssetFileDescriptor openAssetFile(Uri url,
String mode)
throws RemoteException,
FileNotFoundException
- Throws:
RemoteException
FileNotFoundException
openTypedAssetFileDescriptor
public final AssetFileDescriptor openTypedAssetFileDescriptor(Uri uri,
String mimeType,
Bundle opts)
throws RemoteException,
FileNotFoundException
- Throws:
RemoteException
FileNotFoundException
applyBatch
public ContentProviderResult[] applyBatch(ArrayList<ContentProviderOperation> operations)
throws RemoteException,
OperationApplicationException
- Throws:
RemoteException
OperationApplicationException
release
public boolean release()
getLocalContentProvider
public ContentProvider getLocalContentProvider()
Copyright © 2008-2012. All Rights Reserved.