android.content
Class AsyncQueryHandler

java.lang.Object
  extended by android.os.Handler
      extended by android.content.AsyncQueryHandler

public abstract class AsyncQueryHandler
extends Handler


Nested Class Summary
protected static class AsyncQueryHandler.WorkerArgs
           
protected  class AsyncQueryHandler.WorkerHandler
           
 
Nested classes/interfaces inherited from class android.os.Handler
Handler.Callback
 
Constructor Summary
AsyncQueryHandler(ContentResolver cr)
           
 
Method Summary
 void cancelOperation(int token)
           
protected  Handler createHandler(Looper looper)
           
 void handleMessage(Message msg)
           
protected  void onDeleteComplete(int token, Object cookie, int result)
           
protected  void onInsertComplete(int token, Object cookie, Uri uri)
           
protected  void onQueryComplete(int token, Object cookie, Cursor cursor)
           
protected  void onUpdateComplete(int token, Object cookie, int result)
           
 void startDelete(int token, Object cookie, Uri uri, String selection, String[] selectionArgs)
           
 void startInsert(int token, Object cookie, Uri uri, ContentValues initialValues)
           
 void startQuery(int token, Object cookie, Uri uri, String[] projection, String selection, String[] selectionArgs, String orderBy)
           
 void startUpdate(int token, Object cookie, Uri uri, ContentValues values, String selection, String[] selectionArgs)
           
 
Methods inherited from class android.os.Handler
dispatchMessage, dump, getLooper, getMessageName, hasMessages, hasMessages, obtainMessage, obtainMessage, obtainMessage, obtainMessage, obtainMessage, post, postAtFrontOfQueue, postAtTime, postAtTime, postDelayed, removeCallbacks, removeCallbacks, removeCallbacksAndMessages, removeMessages, removeMessages, sendEmptyMessage, sendEmptyMessageAtTime, sendEmptyMessageDelayed, sendMessage, sendMessageAtFrontOfQueue, sendMessageAtTime, sendMessageDelayed, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AsyncQueryHandler

public AsyncQueryHandler(ContentResolver cr)
Method Detail

createHandler

protected Handler createHandler(Looper looper)

startQuery

public void startQuery(int token,
                       Object cookie,
                       Uri uri,
                       String[] projection,
                       String selection,
                       String[] selectionArgs,
                       String orderBy)

cancelOperation

public final void cancelOperation(int token)

startInsert

public final void startInsert(int token,
                              Object cookie,
                              Uri uri,
                              ContentValues initialValues)

startUpdate

public final void startUpdate(int token,
                              Object cookie,
                              Uri uri,
                              ContentValues values,
                              String selection,
                              String[] selectionArgs)

startDelete

public final void startDelete(int token,
                              Object cookie,
                              Uri uri,
                              String selection,
                              String[] selectionArgs)

onQueryComplete

protected void onQueryComplete(int token,
                               Object cookie,
                               Cursor cursor)

onInsertComplete

protected void onInsertComplete(int token,
                                Object cookie,
                                Uri uri)

onUpdateComplete

protected void onUpdateComplete(int token,
                                Object cookie,
                                int result)

onDeleteComplete

protected void onDeleteComplete(int token,
                                Object cookie,
                                int result)

handleMessage

public void handleMessage(Message msg)
Overrides:
handleMessage in class Handler


Copyright © 2008-2012. All Rights Reserved.