public class QuerySqlImpl extends Object implements QuerySql, UseAliasSupport, PrepareStatementBuildSupport
| 构造器和说明 |
|---|
QuerySqlImpl()
构造函数
|
| 限定符和类型 | 方法和说明 |
|---|---|
QuerySql |
andHaving(CriteriaItem havingItem)
`HAVING AND item`语句
|
QuerySql |
andHaving(List<Criteria> havings)
`HAVING AND (havings)`语句
|
QuerySql |
andWhere(CriteriaItem item)
`WHERE AND` 语句
|
QuerySql |
andWhere(List<Criteria> criterion)
`WHERE AND` 语句
|
QuerySql |
column(IColumn column)
`t.column`语句, "t": 为表的别名
|
QuerySql |
column(List<? extends IColumn> columns)
`t.column1, t.column2, ...
|
QuerySql |
columnPo(Class<?> poClass)
传入实体类
|
QuerySql |
complexFullJoinOn(Table table,
List<CriteriaItem> criteriaItems)
`FULL JOIN table t1 on t1.column1=t0.column2, t1.column3=t0.column4 AND t1.column5=?
|
QuerySql |
complexInnerJoinOn(Table table,
List<CriteriaItem> criteriaItems)
`INNER JOIN table t1 on t1.column1=t0.column2, t1.column3=t0.column4 AND t1.column5=?
|
QuerySql |
complexLeftJoinOn(Table table,
List<CriteriaItem> criteriaItems)
`LEFT JOIN table t1 on t1.column1=t0.column2, t1.column3=t0.column4 AND t1.column5=?
|
QuerySql |
complexRightJoinOn(Table table,
List<CriteriaItem> criteriaItems)
`RIGHT JOIN table t1 on t1.column1=t0.column2, t1.column3=t0.column4 AND t1.column5=?
|
QuerySql |
distinct()
distinct 操作
|
QuerySql |
distinct(boolean distinct)
distinct 操作
|
QuerySql |
from(List<Table> tables)
`FROM table1 t1, table2 t2...` 语句, t1, t2表示"表别名"
|
QuerySql |
from(Table table)
`FROM table1 t1` 语句, t1表示"表别名"
|
QuerySql |
fullJoinOn(Table table,
List<Column> columnPairs)
`FULL JOIN table t1 ON t1.column1=t0.column2, t1.column3=t0.column4`语句
|
PrepareStatement |
getPrepareStatement()
获取预查询SQL
|
QuerySql |
groupBy(Column groupBy)
`GROUP BY t1.column`语句
|
QuerySql |
groupBy(List<Column> groupBys)
`GROUP BY t1.column1, t2.column2, ...
|
QuerySql |
having(Criteria having)
`HAVING`语句
|
QuerySql |
having(List<Criteria> havings)
`HAVING`语句
|
QuerySql |
innerJoinOn(Table table,
List<Column> columnPairs)
`INNER JOIN table t1 ON t1.column1=t0.column2, t1.column3=t0.column4`语句
|
boolean |
isUseAlias()
是否使用别名
|
QuerySql |
joinOn(JoinOn joinOn)
JoinOn操作
|
QuerySql |
joinOn(List<JoinOn> joinOns)
JoinOn操作
|
QuerySql |
joinOn(Table table,
List<Column> columnPairs)
`JOIN table t1 ON t1.column1=t0.column2, t1.column3=t0.column4`语句
|
QuerySql |
leftJoinOn(Table table,
List<Column> columnPairs)
`LEFT JOIN table t1 ON t1.column1=t0.column2, t1.column3=t0.column4`语句
|
QuerySql |
limit(int limit)
`LIMIT 0, #{limit}` 语句
|
QuerySql |
limit(int start,
int limit)
`LIMIT #{start}, #{limit}` 语句
|
QuerySql |
orderBy(IColumn column)
`ORDER BY` 语句
|
QuerySql |
orderBy(IColumn column,
boolean desc)
`ORDER BY` 语句
|
QuerySql |
orderBy(IOrderBy orderBy)
`ORDER BY` 语句
|
QuerySql |
orderBy(List<IOrderBy> orderBys)
`ORDER BY` 语句
|
QuerySql |
orHaving(CriteriaItem havingItem)
`HAVING OR item`语句
|
QuerySql |
orHaving(List<Criteria> havings)
`HAVING OR (havings)`语句(多个OR关系)
|
QuerySql |
orWhere(CriteriaItem item)
`WHERE OR`语句
|
QuerySql |
orWhere(List<Criteria> criterion)
`WHERE OR`语句
|
QuerySql |
rightJoinOn(Table table,
List<Column> columnPairs)
`RIGHT JOIN table t1 ON t1.column1=t0.column2, t1.column3=t0.column4`语句
|
CountSql |
toCountSql()
转换为 CountSql
|
QuerySql |
where(Criteria criteria)
`WHERE` 语句
|
QuerySql |
where(List<Criteria> criterion)
`WHERE` 语句
|
append, append, getPrepareStatement, getPrepareStatement, getPrepareStatement, getPrepareStatementpublic QuerySql column(List<? extends IColumn> columns)
ColumnSupportcolumn 在接口中 ColumnSupport<QuerySql>columns - 查询字段对象IColumnpublic QuerySql column(IColumn column)
ColumnSupportcolumn 在接口中 ColumnSupport<QuerySql>column - 查询字段对象IColumnpublic QuerySql columnPo(Class<?> poClass)
ColumnSupportcolumnPo 在接口中 ColumnSupport<QuerySql>poClass - 实体类public QuerySql from(Table table)
FromSupportfrom 在接口中 FromSupport<QuerySql>table - 表对象Tablepublic QuerySql from(List<Table> tables)
FromSupportfrom 在接口中 FromSupport<QuerySql>tables - 表对象列表Tablepublic QuerySql distinct()
DistinctSupportdistinct 在接口中 DistinctSupport<QuerySql>public QuerySql distinct(boolean distinct)
DistinctSupportdistinct 在接口中 DistinctSupport<QuerySql>distinct - 是否distinctpublic QuerySql having(Criteria having)
HavingSupporthaving 在接口中 HavingSupport<QuerySql>having - having语句对象public QuerySql having(List<Criteria> havings)
HavingSupporthaving 在接口中 HavingSupport<QuerySql>havings - having语句对象列表public QuerySql andHaving(CriteriaItem havingItem)
HavingSupportandHaving 在接口中 HavingSupport<QuerySql>havingItem - having语句对象public QuerySql andHaving(List<Criteria> havings)
HavingSupportandHaving 在接口中 HavingSupport<QuerySql>havings - having语句对象列表public QuerySql orHaving(CriteriaItem havingItem)
HavingSupportorHaving 在接口中 HavingSupport<QuerySql>havingItem - having语句对象public QuerySql orHaving(List<Criteria> havings)
HavingSupportorHaving 在接口中 HavingSupport<QuerySql>havings - having语句对象列表public QuerySql joinOn(JoinOn joinOn)
JoinOnSupportjoinOn 在接口中 JoinOnSupport<QuerySql>joinOn - JoinOn操作public QuerySql joinOn(List<JoinOn> joinOns)
JoinOnSupportjoinOn 在接口中 JoinOnSupport<QuerySql>joinOns - JoinOn操作列表public QuerySql joinOn(Table table, List<Column> columnPairs)
JoinOnSupportjoinOn 在接口中 JoinOnSupport<QuerySql>table - 需要join的表对象columnPairs - on相关的"列-对"Columnpublic QuerySql leftJoinOn(Table table, List<Column> columnPairs)
JoinOnSupportleftJoinOn 在接口中 JoinOnSupport<QuerySql>table - 需要join的表对象columnPairs - DbColumn pairsColumnpublic QuerySql rightJoinOn(Table table, List<Column> columnPairs)
JoinOnSupportrightJoinOn 在接口中 JoinOnSupport<QuerySql>table - 需要join的表对象columnPairs - DbColumn pairsColumnpublic QuerySql fullJoinOn(Table table, List<Column> columnPairs)
JoinOnSupportfullJoinOn 在接口中 JoinOnSupport<QuerySql>table - 需要join的表对象columnPairs - DbColumn pairsColumnpublic QuerySql innerJoinOn(Table table, List<Column> columnPairs)
JoinOnSupportinnerJoinOn 在接口中 JoinOnSupport<QuerySql>table - 需要join的表对象columnPairs - DbColumn pairsColumnpublic QuerySql complexLeftJoinOn(Table table, List<CriteriaItem> criteriaItems)
JoinOnSupportcomplexLeftJoinOn 在接口中 JoinOnSupport<QuerySql>table - 需要join的表对象criteriaItems - 条件public QuerySql complexRightJoinOn(Table table, List<CriteriaItem> criteriaItems)
JoinOnSupportcomplexRightJoinOn 在接口中 JoinOnSupport<QuerySql>table - 需要join的表对象criteriaItems - 条件public QuerySql complexFullJoinOn(Table table, List<CriteriaItem> criteriaItems)
JoinOnSupportcomplexFullJoinOn 在接口中 JoinOnSupport<QuerySql>table - 需要join的表对象criteriaItems - 条件public QuerySql complexInnerJoinOn(Table table, List<CriteriaItem> criteriaItems)
JoinOnSupportcomplexInnerJoinOn 在接口中 JoinOnSupport<QuerySql>table - 需要join的表对象criteriaItems - 条件public QuerySql where(Criteria criteria)
WhereSupportwhere 在接口中 WhereSupport<QuerySql>criteria - WHERE相关条件Criteriapublic QuerySql where(List<Criteria> criterion)
WhereSupportwhere 在接口中 WhereSupport<QuerySql>criterion - WHERE相关条件列表Criteriapublic QuerySql andWhere(CriteriaItem item)
WhereSupportandWhere 在接口中 WhereSupport<QuerySql>item - WHERE相关条件Criteriapublic QuerySql andWhere(List<Criteria> criterion)
WhereSupportandWhere 在接口中 WhereSupport<QuerySql>criterion - WHERE相关条件列表Criteriapublic QuerySql orWhere(CriteriaItem item)
WhereSupportorWhere 在接口中 WhereSupport<QuerySql>item - WHERE相关条件Criteriapublic QuerySql orWhere(List<Criteria> criterion)
WhereSupportorWhere 在接口中 WhereSupport<QuerySql>criterion - WHERE相关条件列表Criteriapublic QuerySql groupBy(Column groupBy)
GroupBySupportgroupBy 在接口中 GroupBySupport<QuerySql>groupBy - 相关列aIColumnpublic QuerySql groupBy(List<Column> groupBys)
GroupBySupportgroupBy 在接口中 GroupBySupport<QuerySql>groupBys - 相关列列表IColumnpublic QuerySql orderBy(IOrderBy orderBy)
OrderBySupportorderBy 在接口中 OrderBySupport<QuerySql>orderBy - 相关orderByIOrderBypublic QuerySql orderBy(List<IOrderBy> orderBys)
OrderBySupportorderBy 在接口中 OrderBySupport<QuerySql>orderBys - 相关orderBy列表IOrderBypublic QuerySql orderBy(IColumn column)
OrderBySupportorderBy 在接口中 OrderBySupport<QuerySql>column - orderBy列public QuerySql orderBy(IColumn column, boolean desc)
OrderBySupportorderBy 在接口中 OrderBySupport<QuerySql>column - orderBy列desc - 是否倒序public QuerySql limit(int start, int limit)
LimitSupportlimit 在接口中 LimitSupport<QuerySql>start - 开始位置limit - 限制条数public QuerySql limit(int limit)
LimitSupportlimit 在接口中 LimitSupport<QuerySql>limit - 限制条数public boolean isUseAlias()
UseAliasSupportisUseAlias 在接口中 UseAliasSupportpublic PrepareStatement getPrepareStatement()
PrepareStatementSupportgetPrepareStatement 在接口中 PrepareStatementSupportpublic CountSql toCountSql()
QuerySqltoCountSql 在接口中 QuerySqlCopyright © 2020 IBIT程序猿. All rights reserved.