码迷,mamicode.com
首页 > 移动开发 > 详细

Android ormlite like() function is not working

时间:2014-08-18 18:07:13      阅读:240      评论:0      收藏:0      [点我收藏+]

标签:android   style   http   color   java   io   strong   ar   

//http://stackoverflow.com/questions/7642161/android-ormlite-like-function-is-not-working

try {
    QueryBuilder<MakeDTO, Integer> qb = makeDao.queryBuilder();
    qb.where().like("madeCompany", "%"+filterKey+"%");
    PreparedQuery<MakeDTO> pq = qb.prepare();
    return makeDao.query(pq);
} catch (SQLException e) {
    throw new AppException(e);
}

http://ormlite.com/javadoc/ormlite-core/com/j256/ormlite/stmt/Where.html

 Where<T,ID> like(String columnName, Object value) 
          Add a LIKE clause so the column must mach the value using ‘%‘ patterns.

Android ormlite like() function is not working,布布扣,bubuko.com

Android ormlite like() function is not working

标签:android   style   http   color   java   io   strong   ar   

原文地址:http://www.cnblogs.com/wanqieddy/p/3919939.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!