public class OrderBySupportImpl<T> extends Object implements SqlSupport<T>, OrderBySupport<T>, PrepareStatementBuildSupport
Constructor and Description |
---|
OrderBySupportImpl(T sql)
构造函数
|
Modifier and Type | Method and Description |
---|---|
PrepareStatement |
getOrderByPrepareStatement(boolean useAlias)
获取预查询SQL对象
|
T |
getSql()
返回sql
|
T |
orderBy(IColumn column)
`ORDER BY` 语句
|
T |
orderBy(IColumn column,
boolean desc)
`ORDER BY` 语句
|
T |
orderBy(IOrderBy orderBy)
`ORDER BY` 语句
|
T |
orderBy(List<IOrderBy> orderBys)
`ORDER BY` 语句
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
append, append, getPrepareStatement, getPrepareStatement, getPrepareStatement, getPrepareStatement
public OrderBySupportImpl(T sql)
sql
- sql对象public T getSql()
SqlSupport
getSql
in interface SqlSupport<T>
public T orderBy(IOrderBy orderBy)
OrderBySupport
orderBy
in interface OrderBySupport<T>
orderBy
- 相关orderByIOrderBy
public T orderBy(List<IOrderBy> orderBys)
OrderBySupport
orderBy
in interface OrderBySupport<T>
orderBys
- 相关orderBy列表IOrderBy
public T orderBy(IColumn column)
OrderBySupport
orderBy
in interface OrderBySupport<T>
column
- orderBy列public T orderBy(IColumn column, boolean desc)
OrderBySupport
orderBy
in interface OrderBySupport<T>
column
- orderBy列desc
- 是否倒序public PrepareStatement getOrderByPrepareStatement(boolean useAlias)
useAlias
- 是否使用别名Copyright © 2020 IBIT程序猿. All rights reserved.