android ormlite queryBuilder.where() 多条件

QueryBuilder<VideoTagInfo, Integer> queryBuilder = videoTagInfoIntegerDao.queryBuilder();
try {
queryBuilder.where().eq("value",roomId).and().eq("myFocus",true);
VideoTagInfo videoTagInfo = queryBuilder.queryForFirst();
long count = queryBuilder.countOf();
Log.i("ss","___________________________________count:"+count+"_____videoTagInfo:"+videoTagInfo);
if(videoTagInfo != null){
return true;
}

} catch (SQLException e) {
Log.i("ss","____________________________________________e:"+e);
e.printStackTrace();

}
posted @ 2015-08-06 15:26  wanqi  阅读(6375)  评论(0编辑  收藏  举报