de.greenrobot.dao.query.Query.create()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(1.6k)|赞(0)|评价(0)|浏览(141)

本文整理了Java中de.greenrobot.dao.query.Query.create方法的一些代码示例,展示了Query.create的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.create方法的具体详情如下:
包路径:de.greenrobot.dao.query.Query
类名称:Query
方法名:create

Query.create介绍

暂无

代码示例

代码示例来源:origin: org.greenrobot/greendao-encryption

/** For internal use by greenDAO only. */
public static <T2> Query<T2> internalCreate(AbstractDao<T2, ?> dao, String sql, Object[] initialValues) {
  return create(dao, sql, initialValues, -1, -1);
}

代码示例来源:origin: de.greenrobot/greendao

/** For internal use by greenDAO only. */
public static <T2> Query<T2> internalCreate(AbstractDao<T2, ?> dao, String sql, Object[] initialValues) {
  return create(dao, sql, initialValues, -1, -1);
}

代码示例来源:origin: de.greenrobot/greendao

/**
 * Builds a reusable query object (Query objects can be executed more efficiently than creating a QueryBuilder for
 * each execution.
 */
public Query<T> build() {
  StringBuilder builder = createSelectBuilder();
  int limitPosition = checkAddLimit(builder);
  int offsetPosition = checkAddOffset(builder);
  String sql = builder.toString();
  checkLog(sql);
  return Query.create(dao, sql, values.toArray(), limitPosition, offsetPosition);
}

代码示例来源:origin: org.greenrobot/greendao-encryption

/**
 * Builds a reusable query object (Query objects can be executed more efficiently than creating a QueryBuilder for
 * each execution.
 */
public Query<T> build() {
  StringBuilder builder = createSelectBuilder();
  int limitPosition = checkAddLimit(builder);
  int offsetPosition = checkAddOffset(builder);
  String sql = builder.toString();
  checkLog(sql);
  return Query.create(dao, sql, values.toArray(), limitPosition, offsetPosition);
}

相关文章