类 Where
- 所有已实现的接口:
Query
where 查询条件封装类
- 版本:
- 0.0.1
- 作者:
- scx567888
-
构造器概要
构造器 -
方法概要
从类继承的方法 cool.scx.data.query.QueryLike
addGroupBy, addOrderBy, addWhere, clearGroupBy, clearLimit, clearOffset, clearOrderBy, clearWhere, getGroupBy, getLimit, getLimitInfo, getOffset, getOrderBy, getWhere, groupBy, limit, offset, orderBy, where
-
构造器详细资料
-
Where
public Where()创建一个 Where 对象 -
Where
根据旧的 Where 创建一个 Where 对象- 参数:
oldWhere- 旧的 Where
-
-
方法详细资料
-
isEmpty
public boolean isEmpty()查询条件是否为空- 返回:
- a boolean
-
set
设置 whereSQL 适用于 复杂查询的自定义 where 子句
支持三种类型 String , WhereBody 和 AbstractPlaceholderSQL 在最终 cool.scx.sql 中会拼接到 where 子句的最后
注意 : 除特殊语法外不需要手动在头部添加 AND- 参数:
whereClauses- cool.scx.sql 语句- 返回:
- 本身 , 方便链式调用
-
add
-
clauses
-
clear
清除所有 where 条件 (不包括 whereSQL)- 返回:
- this 方便链式调用
-
toQuery
-