类 SqlSelectBuilder
java.lang.Object
com.sh.wf.module.helper.SqlSelectBuilder
Description: SELECT语句生成类 SqlSelectBuilder ssb = new SqlSelectBuilder(dc) ; ssb.select("*").select("id") .from("lms_library_info a") .innerJoin("sys_dept b on a.dept_id=b.dept_id") .where("id=?","1") .whereLikeLeft("name like ?","abc") .groupby("state") .having("id=1") .orderby("id desc") ;
Title:首亨软件 - 聚天平台
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明and()查询表生成分页对象getSql()INNER JOIN(内连接)LEFT JOIN(左连接)limit(int rowCount) limit(int rowCount, int offset) 分页or()OUTER JOIN(外连接)printLog(boolean logEnable) printLog(org.apache.logging.log4j.Logger log4j, boolean logEnable) reset()重置retrieve()retrieve(boolean isCache) 查询数据集RIGHT JOIN(右连接)条件生成Like条件whereLikeLeft(String condition, String value) 生成Like条件whereLikeRight(String condition, String value) 生成Like条件
-
字段详细资料
-
_log4j
protected static org.apache.logging.log4j.Logger _log4j -
dc
-
-
构造器详细资料
-
SqlSelectBuilder
public SqlSelectBuilder() -
SqlSelectBuilder
-
-
方法详细资料
-
reset
重置- 返回:
-
select
-
select
-
appendSql
-
appendSql
-
from
查询表- 参数:
tableName- sys_info_user a- 返回:
-
innerJoin
INNER JOIN(内连接)- 参数:
exp- sys_info_dept b on a.dept_id=b.dept_id- 返回:
-
leftJoin
LEFT JOIN(左连接)- 参数:
exp- sys_info_dept b on a.dept_id=b.dept_id- 返回:
-
rightJoin
RIGHT JOIN(右连接)- 参数:
exp- sys_info_dept b on a.dept_id=b.dept_id- 返回:
-
outerJoin
OUTER JOIN(外连接)- 参数:
exp- sys_info_dept b on a.dept_id=b.dept_id- 返回:
-
where
条件- 参数:
condition-value-- 返回:
-
where
-
whereLike
生成Like条件- 参数:
condition-value- 值将转化为:%value%- 返回:
-
whereLikeLeft
生成Like条件- 参数:
condition-value- 值将转化为:%value- 返回:
-
whereLikeRight
生成Like条件- 参数:
condition-value- 值将转化为:value%- 返回:
-
or
-
and
-
groupby
-
groupby
-
having
-
having
-
orderby
-
orderby
-
limit
-
limit
分页- 参数:
rowCount-offset-- 返回:
-
retrieve
-
retrieve
查询数据集- 参数:
isCache-- 返回:
-
getDataPages
生成分页对象- 返回:
-
printLog
-
printLog
-
getSql
-
getObjList
-