导读:public class DaoHelper { public static boolean isSaved(int id) { QueryBuilderSaveList qb = saveListDao.queryBuilder(); qb.where(Properties.Id.eq(id)); qb.buildCount().count(); return qb.buildCount().count() 0 ? true : false; } }...
public class DaoHelper {
public static boolean isSaved(int id)
{
QueryBuilder<SaveList> qb = saveListDao.queryBuilder();
qb.where(Properties.Id.eq(id));
qb.buildCount().count();
return qb.buildCount().count() > 0 ? true : false;
}
}