Java Code Examples for de.greenrobot.dao.query.QueryBuilder#count()
The following examples show how to use
de.greenrobot.dao.query.QueryBuilder#count() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: LuaAction.java From MiBandDecompiled with Apache License 2.0 | 6 votes |
public int getCount4(WhereCondition wherecondition, WhereCondition wherecondition1, WhereCondition wherecondition2, WhereCondition wherecondition3) { QueryBuilder querybuilder = DaoManager.getInstance().getLuaListDao().queryBuilder(); querybuilder.where(wherecondition, new WhereCondition[0]); if (wherecondition1 != null) { querybuilder.where(wherecondition1, new WhereCondition[0]); } if (wherecondition2 != null) { querybuilder.where(wherecondition2, new WhereCondition[0]); } if (wherecondition2 != null) { querybuilder.where(wherecondition2, new WhereCondition[0]); } return (int)querybuilder.count(); }
Example 2
Source File: LuaAction.java From MiBandDecompiled with Apache License 2.0 | 5 votes |
public int getCount(WhereCondition wherecondition, WhereCondition wherecondition1) { QueryBuilder querybuilder = DaoManager.getInstance().getLuaListDao().queryBuilder(); querybuilder.where(wherecondition, new WhereCondition[0]); if (wherecondition1 != null) { querybuilder.where(wherecondition1, new WhereCondition[0]); } return (int)querybuilder.count(); }
Example 3
Source File: LuaAction.java From MiBandDecompiled with Apache License 2.0 | 4 votes |
public int queryCount(QueryBuilder querybuilder) { return (int)querybuilder.count(); }