类 Select
- 所有已实现的接口:
Serializable
查询
- 版本:
- 1.0
- 作者:
- Jovi
- 另请参阅:
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明增加连表添加column列字段设置column添加column列字段添加column列字段<T,R> Select 添加column列字段<T,R> Select 添加column列字段<T,R> Select 添加column列字段添加column列字段设置column添加column列字段添加column列字段copy()复制对象voidcount(boolean count) 是否为查询distinct(boolean distinct) 设置useDistinct是否过滤重复filterFields(Column... filterColumns) 设置过滤的列字段<T,R> Select filterFields(ColumnFun<T, R>... columnFuns) 设置过滤的列字段filterFields(String... filterFields) 设置过滤的列字段获取column sql 内容获取过滤的列字段获取groupBy分组列字段获取where sql 内容Object[]获取Having获得Having包装器getJoin()获取表连接获取orderBy排序列字段getPage()获取分页参数添加groupBy分组<T,R> Select 添加groupBy分组添加groupBy分组添加groupBy分组having()简单的having设置Having条件包装器设置having sql 内容booleanisCount()是否为查询boolean获取useDistinct是否过滤重复已过时。已过时。已过时。join(JoinType joinType, String schema, String table, String tableAlias, String tableKeyword, String mainKeyword) 已过时。已过时。已过时。已过时。添加列字段排序添加列字段排序<T,R> Select 添加列字段排序添加列字段排序添加列字段排序orderByAsc(Column column) 添加列字段排序<T,R> Select orderByAsc(ColumnFun<T, R> columnFun) 添加列字段排序orderByAsc(String columName) 添加列字段排序orderByDesc(Column column) 添加列字段排序<T,R> Select orderByDesc(ColumnFun<T, R> columnFun) 添加列字段排序orderByDesc(String columName) 添加列字段排序设置分页参数设置分页参数设置分页参数(SqlServer专用)设置分页参数(SqlServer专用)voidsetColumnList(List<Column> columnList) 设置column list设置table sql 内容设置table设置table设置table从类继承的方法 cn.vonce.sql.bean.CommonCondition
getArgs, getWhere, getWhereWrapper, setReturnObj, where, where, where从类继承的方法 cn.vonce.sql.bean.Common
getBeanClass, getSqlBeanMeta, getTable, setBeanClass, setSqlBeanMeta, setTable, setTable, setTable, setTable, setTable
-
构造器详细资料
-
Select
public Select()
-
-
方法详细资料
-
isDistinct
public boolean isDistinct()获取useDistinct是否过滤重复- 返回:
-
distinct
设置useDistinct是否过滤重复- 参数:
distinct- 是否过滤
-
isCount
public boolean isCount()是否为查询- 返回:
-
count
public void count(boolean count) 是否为查询- 参数:
count-
-
getColumnList
获取column sql 内容- 返回:
-
setColumnList
设置column list- 参数:
columnList-
-
column
设置column- 参数:
columNames-
-
column
设置column- 参数:
columns-
-
column
添加column列字段- 参数:
column-- 返回:
-
column
添加column列字段- 参数:
columnFun-- 返回:
-
column
添加column列字段- 参数:
columnFuns-- 返回:
-
column
添加column列字段- 参数:
columName-- 返回:
-
column
添加column列字段- 参数:
columName- 列列字段名columnAlias- 别名- 返回:
-
column
添加column列字段- 参数:
select- 子SqlcolumnAlias- 别名- 返回:
-
column
添加column列字段- 参数:
column-columnAlias-- 返回:
-
column
添加column列字段- 参数:
columnFun-columnAlias-- 返回:
-
column
添加column列字段- 参数:
tableAlias- 表别名columName- 列列字段名columnAlias- 别名- 返回:
-
addJoin
增加连表- 参数:
join-- 返回:
-
getJoin
获取表连接 -
join
已过时。添加表连接- 参数:
table- 关联的表名tableKeyword- 关联的表关键列字段mainKeyword- 主表关键列字段
-
join
@Deprecated public Select join(JoinType joinType, String table, String tableKeyword, String mainKeyword) 已过时。添加表连接- 参数:
joinType- 连接类型table- 关联的表名tableKeyword- 关联的表关键列字段mainKeyword- 主表关键列字段
-
join
@Deprecated public Select join(String schema, String table, String tableAlias, String tableKeyword, String mainKeyword) 已过时。添加表连接- 参数:
table- 关联的表名tableKeyword- 关联的表关键列字段mainKeyword- 主表关键列字段
-
join
@Deprecated public Select join(JoinType joinType, String schema, String table, String tableAlias, String tableKeyword, String mainKeyword) 已过时。添加表连接- 参数:
joinType- 连接类型schema- schematable- 关联的表名tableKeyword- 关联的表关键列字段mainKeyword- 主表关键列字段
-
join
已过时。添加表连接- 参数:
table- 关联的表名on- 连接条件
-
join
已过时。添加表连接- 参数:
joinType- 连接类型table- 关联的表名on- 连接条件
-
join
@Deprecated public Select join(JoinType joinType, String schema, String table, String tableAlias, String on) 已过时。添加表连接- 参数:
joinType- 连接类型schema- schematable- 关联的表名on- 连接条件
-
innerJoin
-
innerJoin
-
innerJoin
-
leftJoin
-
leftJoin
-
leftJoin
-
rightJoin
-
rightJoin
-
rightJoin
-
fullJoin
-
fullJoin
-
fullJoin
-
getGroupBy
获取groupBy分组列字段- 返回:
-
groupBy
添加groupBy分组- 参数:
columName- 列字段名- 返回:
-
groupBy
添加groupBy分组- 参数:
column- 列字段信息- 返回:
-
groupBy
添加groupBy分组- 参数:
columnFun- 列字段信息- 返回:
-
groupBy
添加groupBy分组- 参数:
tableAlias- 表别名columName- 列字段名- 返回:
-
getOrderBy
获取orderBy排序列字段- 返回:
-
orderByAsc
添加列字段排序- 参数:
columName- 列字段名
-
orderByDesc
添加列字段排序- 参数:
columName- 列字段名
-
orderByAsc
添加列字段排序- 参数:
column- 列字段名
-
orderByAsc
添加列字段排序- 参数:
columnFun- 列字段名
-
orderByDesc
添加列字段排序- 参数:
column- 列字段名
-
orderByDesc
添加列字段排序- 参数:
columnFun- 列字段名
-
orderBy
添加列字段排序- 参数:
columName- 列字段名sqlSort- 排序方式- 返回:
-
orderBy
添加列字段排序- 参数:
tableAlias- 表别名columName- 列字段名sqlSort- 排序方式- 返回:
-
orderBy
添加列字段排序- 参数:
column-sqlSort-- 返回:
-
orderBy
添加列字段排序- 参数:
columnFun- 列字段名sqlSort- 排序方式- 返回:
-
orderBy
添加列字段排序- 参数:
orders- 排序- 返回:
-
page
设置分页参数- 参数:
pagenum- 当前页(第一页从0开始)pagesize- 每页显示数量
-
page
设置分页参数- 参数:
pagenum- 当前页(默认第一页从0开始)pagesize- 每页显示数量startByZero- 第一页是否从0开始
-
page
设置分页参数(SqlServer专用)- 参数:
idName- 主键的名称pagenum- 当前页(第一页从0开始)pagesize- 每页显示数量
-
page
设置分页参数(SqlServer专用)- 参数:
idName- 主键的名称pagenum- 当前页(第一页从0开始)pagesize- 每页显示数量startByZero- startByZero 第一页是否从0开始
-
getPage
获取分页参数- 返回:
-
filterFields
设置过滤的列字段- 参数:
filterFields-
-
getFilterColumns
获取过滤的列字段- 返回:
-
filterFields
设置过滤的列字段- 参数:
filterColumns-
-
filterFields
设置过滤的列字段- 参数:
columnFuns-
-
having
简单的having- 返回:
-
getHavingWrapper
获得Having包装器- 返回:
-
having
设置Having条件包装器- 参数:
wrapper-
-
getHaving
获取where sql 内容- 返回:
-
having
设置having sql 内容- 参数:
having-args-
-
getHavingArgs
获取Having- 返回:
-
table
设置table- 参数:
name-
-
table
设置table- 参数:
name-aliasName-
-
table
设置table- 参数:
name-aliasName-
-
table
设置table sql 内容- 参数:
clazz- 表对应的实体类
-
copy
复制对象- 返回:
- 抛出:
IOExceptionClassNotFoundException
-