public class OrmLiteCursorLoader<T>
extends android.support.v4.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 support library version of the AsyncTaskLoader
.
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) |
cancelLoad, dump, onForceLoad, onLoadInBackground, setUpdateThrottle, waitForLoader
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.support.v4.content.AsyncTaskLoader<android.database.Cursor>
public void deliverResult(android.database.Cursor newCursor)
deliverResult
in class android.support.v4.content.Loader<android.database.Cursor>
protected void onStartLoading()
onStartLoading
in class android.support.v4.content.Loader<android.database.Cursor>
protected void onStopLoading()
onStopLoading
in class android.support.v4.content.Loader<android.database.Cursor>
public void onCanceled(android.database.Cursor cursor)
onCanceled
in class android.support.v4.content.AsyncTaskLoader<android.database.Cursor>
protected void onReset()
onReset
in class android.support.v4.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.