org.jooq.Field.notBetween()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(1.4k)|赞(0)|评价(0)|浏览(84)

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

Field.notBetween介绍

[英]Create a condition to check this field against some bounds.

SQL: this not between minValue and maxValue
[中]创建一个条件,根据某些边界检查此字段。
SQL:this not between minValue and maxValue

代码示例

代码示例来源:origin: org.jooq/jooq

private final QueryPartInternal delegate(Configuration configuration) {
  if (symmetric && NO_SUPPORT_SYMMETRIC.contains(configuration.family()))
    return not
      ? (QueryPartInternal) field.notBetween(minValue, maxValue).and(field.notBetween(maxValue, minValue))
      : (QueryPartInternal) field.between(minValue, maxValue).or(field.between(maxValue, minValue));
  else
    return new Native();
}

代码示例来源:origin: org.jooq/jooq

: not
  ? left instanceof Field
    ? ((Field) left).notBetween((Field) r1, (Field) r2)
    : ((RowN) left).notBetween((RowN) r1, (RowN) r2)
  : left instanceof Field

代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-analytics

private final QueryPartInternal delegate(Configuration configuration) {
  if (symmetric && asList(CUBRID, DERBY, FIREBIRD, H2, MARIADB, MYSQL, SQLITE).contains(configuration.dialect().family())) {
    if (not) {
      return (QueryPartInternal) field.notBetween(minValue, maxValue).and(field.notBetween(maxValue, minValue));
    }
    else {
      return (QueryPartInternal) field.between(minValue, maxValue).or(field.between(maxValue, minValue));
    }
  }
  else {
    return new Native();
  }
}

相关文章