public class GroupBySupportImpl<T> extends Object implements SqlSupport<T>, GroupBySupport<T>, PrepareStatementBuildSupport
Constructor and Description |
---|
GroupBySupportImpl(T sql)
构造函数
|
Modifier and Type | Method and Description |
---|---|
<K> GroupBySupportImpl<K> |
copy(K sql)
对象复制(浅复制)
|
PrepareStatement |
getGroupByPrepareStatement(boolean useAlias)
获取预查询SQL对象
|
T |
getSql()
返回sql
|
T |
groupBy(Column groupBy)
`GROUP BY t1.column`语句
|
T |
groupBy(List<Column> groupBys)
`GROUP BY t1.column1, t2.column2, ...`语句
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
append, append, getPrepareStatement, getPrepareStatement, getPrepareStatement, getPrepareStatement
public GroupBySupportImpl(T sql)
sql
- sql对象public <K> GroupBySupportImpl<K> copy(K sql)
K
- sql对象模板sql
- sql对象public T getSql()
SqlSupport
getSql
in interface SqlSupport<T>
public T groupBy(Column groupBy)
GroupBySupport
groupBy
in interface GroupBySupport<T>
groupBy
- 相关列aIColumn
public T groupBy(List<Column> groupBys)
GroupBySupport
groupBy
in interface GroupBySupport<T>
groupBys
- 相关列列表IColumn
public PrepareStatement getGroupByPrepareStatement(boolean useAlias)
useAlias
- 是否使用别名Copyright © 2020 IBIT程序猿. All rights reserved.