当前位置: 首页>>代码示例>>Java>>正文


Java AbstractDao.queryBuilder方法代码示例

本文整理汇总了Java中de.greenrobot.dao.AbstractDao.queryBuilder方法的典型用法代码示例。如果您正苦于以下问题:Java AbstractDao.queryBuilder方法的具体用法?Java AbstractDao.queryBuilder怎么用?Java AbstractDao.queryBuilder使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在de.greenrobot.dao.AbstractDao的用法示例。


在下文中一共展示了AbstractDao.queryBuilder方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getList

import de.greenrobot.dao.AbstractDao; //导入方法依赖的package包/类
public static List getList(AbstractDao dao, boolean isAsc, Property... orderProperty) {
    setIfLog();
    QueryBuilder queryBuilder = dao.queryBuilder();
    if (isAsc) {
        queryBuilder = queryBuilder.orderAsc(orderProperty);
    } else {
        queryBuilder = queryBuilder.orderDesc(orderProperty);
    }
    List indexFavList = queryBuilder.list();
    return indexFavList;
}
 
开发者ID:DroidKOF,项目名称:pineapple,代码行数:12,代码来源:GreenDaoUtils.java

示例2: getList

import de.greenrobot.dao.AbstractDao; //导入方法依赖的package包/类
/**
 * Executes the query and returns the result as a list containing all entities loaded into memory.
 * @param dao
 * @param isAsc
 * @param orderProperty
 * @return
 */
public static List getList(AbstractDao dao, boolean isAsc, Property... orderProperty) {
    setIfLog();
    QueryBuilder queryBuilder = dao.queryBuilder();
    if (isAsc) {
        queryBuilder = queryBuilder.orderAsc(orderProperty);
    } else {
        queryBuilder = queryBuilder.orderDesc(orderProperty);
    }
    List indexFavList = queryBuilder.list();
    return indexFavList;
}
 
开发者ID:cymcsg,项目名称:UltimateAndroid,代码行数:19,代码来源:GreenDaoUtils.java

示例3: getQueryBuilder

import de.greenrobot.dao.AbstractDao; //导入方法依赖的package包/类
public static QueryBuilder getQueryBuilder(AbstractDao dao, WhereCondition cond, WhereCondition... condmore) {
    setIfLog();
    QueryBuilder qb = dao.queryBuilder();
    qb.where(cond, condmore);
    return qb;
}
 
开发者ID:DroidKOF,项目名称:pineapple,代码行数:7,代码来源:GreenDaoUtils.java

示例4: deleteByCondition

import de.greenrobot.dao.AbstractDao; //导入方法依赖的package包/类
public static void deleteByCondition(AbstractDao dao, WhereCondition cond, WhereCondition... condmore) {
    setIfLog();
    QueryBuilder qb = dao.queryBuilder();
    qb.where(cond, condmore).buildDelete().executeDeleteWithoutDetachingEntities();

}
 
开发者ID:DroidKOF,项目名称:pineapple,代码行数:7,代码来源:GreenDaoUtils.java

示例5: deleteByCondition

import de.greenrobot.dao.AbstractDao; //导入方法依赖的package包/类
/**
 * Deletes all matching entities without detaching them from the identity scope (aka session/cache). Note that this
 * method may lead to stale entity objects in the session cache. Stale entities may be returned when loaded by their
 * primary key, but not using queries.
 * @param dao
 * @param cond
 * @param condmore
 */
public static void deleteByCondition(AbstractDao dao, WhereCondition cond, WhereCondition... condmore) {
    setIfLog();
    QueryBuilder qb = dao.queryBuilder();
    qb.where(cond, condmore).buildDelete().executeDeleteWithoutDetachingEntities();

}
 
开发者ID:cymcsg,项目名称:UltimateAndroid,代码行数:15,代码来源:GreenDaoUtils.java


注:本文中的de.greenrobot.dao.AbstractDao.queryBuilder方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。