public abstract class BaseOrmLiteLoader<T,ID> extends android.content.AsyncTaskLoader<List<T>> implements com.j256.ormlite.dao.Dao.DaoObserver
CursorLoader
. Implements basic loading and synchronization logic.Modifier and Type | Field and Description |
---|---|
protected com.j256.ormlite.dao.Dao<T,ID> |
dao
A Dao which will be queried for the data.
|
Constructor and Description |
---|
BaseOrmLiteLoader(android.content.Context context) |
BaseOrmLiteLoader(android.content.Context context,
com.j256.ormlite.dao.Dao<T,ID> dao) |
Modifier and Type | Method and Description |
---|---|
void |
deliverResult(List<T> results) |
void |
onChange() |
protected void |
onReset() |
protected void |
onStartLoading()
Starts an asynchronous load of the data.
|
protected void |
onStopLoading()
Must be called from the UI thread
|
void |
setDao(com.j256.ormlite.dao.Dao<T,ID> dao) |
cancelLoadInBackground, dump, isLoadInBackgroundCanceled, loadInBackground, onCanceled, 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 void onStartLoading()
Must be called from the UI thread.
protected void onStopLoading()
public void onChange()
onChange
in interface com.j256.ormlite.dao.Dao.DaoObserver
This documentation is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.