类 Where

java.lang.Object
cool.scx.data.query.Where

public final class Where extends Object
where 查询条件封装类
版本:
0.0.1
作者:
scx567888
  • 构造器概要

    构造器
    构造器
    说明
    创建一个 Where 对象
    Where(Where oldWhere)
    根据旧的 Where 创建一个 Where 对象
  • 方法概要

    修饰符和类型
    方法
    说明
     
    清除所有 where 条件 (不包括 whereSQL)
    boolean
    查询条件是否为空
    set(Object... whereClauses)
    设置 whereSQL 适用于 复杂查询的自定义 where 子句
    支持三种类型 String , WhereBody 和 AbstractPlaceholderSQL 在最终 cool.scx.sql 中会拼接到 where 子句的最后
    注意 : 除特殊语法外不需要手动在头部添加 AND

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 构造器详细资料

    • Where

      public Where()
      创建一个 Where 对象
    • Where

      public Where(Where oldWhere)
      根据旧的 Where 创建一个 Where 对象
      参数:
      oldWhere - 旧的 Where
  • 方法详细资料

    • isEmpty

      public boolean isEmpty()
      查询条件是否为空
      返回:
      a boolean
    • set

      public Where set(Object... whereClauses)
      设置 whereSQL 适用于 复杂查询的自定义 where 子句
      支持三种类型 String , WhereBody 和 AbstractPlaceholderSQL 在最终 cool.scx.sql 中会拼接到 where 子句的最后
      注意 : 除特殊语法外不需要手动在头部添加 AND
      参数:
      whereClauses - cool.scx.sql 语句
      返回:
      本身 , 方便链式调用
    • clauses

      public Object[] clauses()
    • clear

      public Where clear()
      清除所有 where 条件 (不包括 whereSQL)
      返回:
      this 方便链式调用