Search in sources :

Example 6 with QueryBuilder

use of de.greenrobot.dao.query.QueryBuilder in project UltimateAndroid by cymcsg.

the class GreenDaoUtils method getList.

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;
}
Also used : List(java.util.List) LazyList(de.greenrobot.dao.query.LazyList) QueryBuilder(de.greenrobot.dao.query.QueryBuilder)

Aggregations

QueryBuilder (de.greenrobot.dao.query.QueryBuilder)6 LazyList (de.greenrobot.dao.query.LazyList)2 List (java.util.List)2