public class OrmLiteCursorLoader<T>
extends android.content.AsyncTaskLoader<android.database.Cursor>
implements com.j256.ormlite.dao.Dao.DaoObserver
NOTE: This should be the same as OrmLiteCursorLoader
but this should import the normal version of the AsyncTaskLoader
, not the support version.
Modifier and Type | Field and Description |
---|---|
protected android.database.Cursor |
cursor |
protected com.j256.ormlite.dao.Dao<T,?> |
dao |
protected com.j256.ormlite.stmt.PreparedQuery<T> |
query |
Constructor and Description |
---|
OrmLiteCursorLoader(android.content.Context context,
com.j256.ormlite.dao.Dao<T,?> dao,
com.j256.ormlite.stmt.PreparedQuery<T> query) |
Modifier and Type | Method and Description |
---|---|
void |
deliverResult(android.database.Cursor newCursor) |
com.j256.ormlite.stmt.PreparedQuery<T> |
getQuery() |
android.database.Cursor |
loadInBackground() |
void |
onCanceled(android.database.Cursor cursor) |
void |
onChange() |
protected void |
onReset() |
protected void |
onStartLoading() |
protected void |
onStopLoading() |
void |
setQuery(com.j256.ormlite.stmt.PreparedQuery<T> mQuery) |
cancelLoadInBackground, dump, isLoadInBackgroundCanceled, onCancelLoad, onForceLoad, onLoadInBackground, setUpdateThrottle
abandon, cancelLoad, dataToString, deliverCancellation, forceLoad, getContext, getId, isAbandoned, isReset, isStarted, onAbandon, onContentChanged, registerListener, registerOnLoadCanceledListener, reset, startLoading, stopLoading, takeContentChanged, toString, unregisterListener, unregisterOnLoadCanceledListener
protected com.j256.ormlite.dao.Dao<T,?> dao
protected com.j256.ormlite.stmt.PreparedQuery<T> query
protected android.database.Cursor cursor
public android.database.Cursor loadInBackground()
loadInBackground
in class android.content.AsyncTaskLoader<android.database.Cursor>
public void deliverResult(android.database.Cursor newCursor)
deliverResult
in class android.content.Loader<android.database.Cursor>
protected void onStartLoading()
onStartLoading
in class android.content.Loader<android.database.Cursor>
protected void onStopLoading()
onStopLoading
in class android.content.Loader<android.database.Cursor>
public void onCanceled(android.database.Cursor cursor)
onCanceled
in class android.content.AsyncTaskLoader<android.database.Cursor>
protected void onReset()
onReset
in class android.content.Loader<android.database.Cursor>
public void onChange()
onChange
in interface com.j256.ormlite.dao.Dao.DaoObserver
public com.j256.ormlite.stmt.PreparedQuery<T> getQuery()
public void setQuery(com.j256.ormlite.stmt.PreparedQuery<T> mQuery)
This documentation is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.