类 OrmLiteLoader<T>
java.lang.Object
android.content.Loader<D>
android.content.AsyncTaskLoader<T>
net.apexes.commons.ormlite.OrmLiteLoader<T>
- 类型参数:
T-
public abstract class OrmLiteLoader<T>
extends android.content.AsyncTaskLoader<T>
使用ORMLite从数据库中查询记录的Loader实现。
使用方法参见
CursorLoader- 作者:
- HeDYn
-
嵌套类概要
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voiddeliverResult(T data) protected abstract <E extends SQLiteDatabaseHelper>
Class<E>返回SQLiteDatabaseHelper实现类的类型protected voidonReset()protected voidprotected voidprotected abstract Tquery(net.apexes.commons.ormlite.DatabaseHelper databaseHelper) 返回符合要求的记录,在回调的LoaderManager.LoaderCallbacks.onLoadFinished(Loader, Object)将传入此返回值。从类继承的方法 android.content.AsyncTaskLoader
cancelLoadInBackground, dump, isLoadInBackgroundCanceled, onCanceled, onCancelLoad, onForceLoad, onLoadInBackground, setUpdateThrottle从类继承的方法 android.content.Loader
abandon, cancelLoad, dataToString, deliverCancellation, forceLoad, getContext, getId, isAbandoned, isReset, isStarted, onAbandon, onContentChanged, registerListener, registerOnLoadCanceledListener, reset, startLoading, stopLoading, takeContentChanged, toString, unregisterListener, unregisterOnLoadCanceledListener
-
构造器详细资料
-
OrmLiteLoader
protected OrmLiteLoader(android.content.Context context, android.net.Uri uri)
-
-
方法详细资料
-
loadInBackground
- 指定者:
loadInBackground在类中android.content.AsyncTaskLoader<T>
-
deliverResult
- 覆盖:
deliverResult在类中android.content.Loader<T>
-
onStartLoading
protected void onStartLoading()- 覆盖:
onStartLoading在类中android.content.Loader<T>
-
onStopLoading
protected void onStopLoading()- 覆盖:
onStopLoading在类中android.content.Loader<T>
-
onReset
protected void onReset()- 覆盖:
onReset在类中android.content.Loader<T>
-
getHelperClass
返回SQLiteDatabaseHelper实现类的类型- 返回:
-
query
protected abstract T query(net.apexes.commons.ormlite.DatabaseHelper databaseHelper) throws SQLException 返回符合要求的记录,在回调的LoaderManager.LoaderCallbacks.onLoadFinished(Loader, Object)将传入此返回值。- 参数:
databaseHelper-- 返回:
- 抛出:
SQLException
-