public class Top extends Object implements SelectItem
Constructor and Description |
---|
Top(long rowCount,
boolean rowCountJdbcParameter,
boolean hasParenthesis,
boolean isPercentage,
SelectItem selectItem) |
Modifier and Type | Method and Description |
---|---|
void |
builderSelectItem(StatementSqlBuilder builder)
实现接口的sql片段通过builder.appendSql(String
segment)进行拼接,也可以builder.getStringBuilder方法获取StringBuilder,然后进行append
实现的参数信息通过builder.addParamValue(Object...
|
long |
getRowCount() |
boolean |
hasParenthesis() |
boolean |
isPercentage() |
boolean |
isRowCountJdbcParameter() |
void |
setParenthesis(boolean hasParenthesis) |
void |
setPercentage(boolean percentage) |
void |
setRowCount(long rowCount) |
void |
setRowCountJdbcParameter(boolean rowCountJdbcParameter) |
static Top |
top(long rowCount,
SelectItem selectItem) |
static Top |
topParameter(long rowCount,
SelectItem selectItem) |
String |
toString() |
public Top(long rowCount, boolean rowCountJdbcParameter, boolean hasParenthesis, boolean isPercentage, SelectItem selectItem)
public static Top top(long rowCount, SelectItem selectItem)
public static Top topParameter(long rowCount, SelectItem selectItem)
public long getRowCount()
public void setRowCount(long rowCount)
public boolean isRowCountJdbcParameter()
public void setRowCountJdbcParameter(boolean rowCountJdbcParameter)
public boolean hasParenthesis()
public void setParenthesis(boolean hasParenthesis)
public boolean isPercentage()
public void setPercentage(boolean percentage)
public void builderSelectItem(StatementSqlBuilder builder)
SelectItemBuildProcessor
builderSelectItem
in interface SelectItemBuildProcessor
Copyright © 2006–2018 TinyGroup. All rights reserved.