android.content
Class ContentProviderClient

java.lang.Object
  extended by android.content.ContentProviderClient

public class ContentProviderClient
extends java.lang.Object


Method Summary
 ContentProviderResult[] applyBatch(java.util.ArrayList<ContentProviderOperation> operations)
           
 int bulkInsert(Uri url, ContentValues[] initialValues)
           
 int delete(Uri url, java.lang.String selection, java.lang.String[] selectionArgs)
           
 ContentProvider getLocalContentProvider()
           
 java.lang.String getType(Uri url)
           
 Uri insert(Uri url, ContentValues initialValues)
           
 AssetFileDescriptor openAssetFile(Uri url, java.lang.String mode)
           
 ParcelFileDescriptor openFile(Uri url, java.lang.String mode)
           
 Cursor query(Uri url, java.lang.String[] projection, java.lang.String selection, java.lang.String[] selectionArgs, java.lang.String sortOrder)
           
 boolean release()
           
 int update(Uri url, ContentValues values, java.lang.String selection, java.lang.String[] selectionArgs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

query

public Cursor query(Uri url,
                    java.lang.String[] projection,
                    java.lang.String selection,
                    java.lang.String[] selectionArgs,
                    java.lang.String sortOrder)
             throws RemoteException
Throws:
RemoteException

getType

public java.lang.String getType(Uri url)
                         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,
                  java.lang.String selection,
                  java.lang.String[] selectionArgs)
           throws RemoteException
Throws:
RemoteException

update

public int update(Uri url,
                  ContentValues values,
                  java.lang.String selection,
                  java.lang.String[] selectionArgs)
           throws RemoteException
Throws:
RemoteException

openFile

public ParcelFileDescriptor openFile(Uri url,
                                     java.lang.String mode)
                              throws RemoteException,
                                     java.io.FileNotFoundException
Throws:
RemoteException
java.io.FileNotFoundException

openAssetFile

public AssetFileDescriptor openAssetFile(Uri url,
                                         java.lang.String mode)
                                  throws RemoteException,
                                         java.io.FileNotFoundException
Throws:
RemoteException
java.io.FileNotFoundException

applyBatch

public ContentProviderResult[] applyBatch(java.util.ArrayList<ContentProviderOperation> operations)
                                   throws RemoteException,
                                          OperationApplicationException
Throws:
RemoteException
OperationApplicationException

release

public boolean release()

getLocalContentProvider

public ContentProvider getLocalContentProvider()


Copyright © 2008-2010. All Rights Reserved.