类 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
  • 嵌套类概要

    从类继承的嵌套类/接口 android.content.Loader

    android.content.Loader.ForceLoadContentObserver, android.content.Loader.OnLoadCanceledListener<D extends Object>, android.content.Loader.OnLoadCompleteListener<D extends Object>
  • 构造器概要

    构造器
    限定符
    构造器
    说明
    protected
    OrmLiteLoader(android.content.Context context, android.net.Uri uri)
     
  • 方法概要

    修饰符和类型
    方法
    说明
    void
     
    protected abstract <E extends SQLiteDatabaseHelper>
    Class<E>
    返回SQLiteDatabaseHelper实现类的类型
     
    protected void
     
    protected void
     
    protected void
     
    protected abstract T
    query(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

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • 构造器详细资料

    • OrmLiteLoader

      protected OrmLiteLoader(android.content.Context context, android.net.Uri uri)
  • 方法详细资料

    • loadInBackground

      public T loadInBackground()
      指定者:
      loadInBackground 在类中 android.content.AsyncTaskLoader<T>
    • deliverResult

      public void deliverResult(T data)
      覆盖:
      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

      protected abstract <E extends SQLiteDatabaseHelper> Class<E> getHelperClass()
      返回SQLiteDatabaseHelper实现类的类型
      返回:
    • query

      protected abstract T query(net.apexes.commons.ormlite.DatabaseHelper databaseHelper) throws SQLException
      返回符合要求的记录,在回调的LoaderManager.LoaderCallbacks.onLoadFinished(Loader, Object) 将传入此返回值。
      参数:
      databaseHelper -
      返回:
      抛出:
      SQLException