本文整理了Java中de.greenrobot.dao.query.QueryBuilder.listLazy
方法的一些代码示例,展示了QueryBuilder.listLazy
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。QueryBuilder.listLazy
方法的具体详情如下:
包路径:de.greenrobot.dao.query.QueryBuilder
类名称:QueryBuilder
方法名:listLazy
[英]Shorthand for QueryBuilder#build(). Query#listLazy(); see Query#listLazy() for details. To execute a query more than once, you should build the query and keep the Query object for efficiency reasons.
[中]QueryBuilder#build()的缩写。查询#listLazy();有关详细信息,请参见查询#listLazy()。要多次执行查询,应构建查询并出于效率考虑保留查询对象。
代码示例来源:origin: cymcsg/UltimateAndroid
/**
* Executes the query and returns the result as a list that lazy loads the entities on first access. Entities are cached, so accessing the same entity more than once will not result in loading an entity from the underlying cursor again.Make sure to close it to close the underlying cursor.
* @param dao
* @param cond
* @param condmore
* @return
*/
public static LazyList queryBuilderLazyList(AbstractDao dao, WhereCondition cond, WhereCondition... condmore) {
return getQueryBuilder(dao, cond, condmore).listLazy();
}
代码示例来源:origin: seven332/EhViewer
public static synchronized LazyList<HistoryInfo> getHistoryLazyList() {
return sDaoSession.getHistoryDao().queryBuilder().orderDesc(HistoryDao.Properties.Time).listLazy();
}
内容来源于网络,如有侵权,请联系作者删除!