public class SubSelect extends Object implements FromItem, Expression, ItemsList
Constructor and Description |
---|
SubSelect(SelectBody selectBody,
Alias alias,
boolean useBrackets) |
Modifier and Type | Method and Description |
---|---|
void |
builderExpression(StatementSqlBuilder builder)
实现接口的sql片段通过builder.appendSql(String
segment)进行拼接,也可以builder.getStringBuilder方法获取StringBuilder,然后进行append
实现的参数信息通过builder.addParamValue(Object...
|
void |
builderFromItem(StatementSqlBuilder builder)
实现接口的sql片段通过builder.appendSql(String
segment)进行拼接,也可以builder.getStringBuilder方法获取StringBuilder,然后进行append
实现的参数信息通过builder.addParamValue(Object...
|
void |
builderItemList(StatementSqlBuilder builder)
实现接口的sql片段通过builder.appendSql(String
segment)进行拼接,也可以builder.getStringBuilder方法获取StringBuilder,然后进行append
实现的参数信息通过builder.addParamValue(Object...
|
Alias |
getAlias()
返回别名对象
|
SelectBody |
getSelectBody() |
boolean |
isUseBrackets() |
void |
setAlias(Alias alias)
设置别名对象
|
void |
setSelectBody(SelectBody body) |
void |
setUseBrackets(boolean useBrackets) |
static SubSelect |
subSelect(Select select) |
static SubSelect |
subSelect(Select select,
Alias alias,
boolean useBrackets) |
static SubSelect |
subSelect(SelectBody selectBody) |
static SubSelect |
subSelect(SelectBody selectBody,
Alias alias,
boolean useBrackets) |
static SubSelect |
subSelect(SelectBody selectBody,
String aliasName,
boolean useBrackets) |
static SubSelect |
subSelect(Select select,
String aliasName,
boolean useBrackets) |
String |
toString() |
public SubSelect(SelectBody selectBody, Alias alias, boolean useBrackets)
public static SubSelect subSelect(SelectBody selectBody)
public static SubSelect subSelect(SelectBody selectBody, Alias alias, boolean useBrackets)
public static SubSelect subSelect(SelectBody selectBody, String aliasName, boolean useBrackets)
public SelectBody getSelectBody()
public void setSelectBody(SelectBody body)
public boolean isUseBrackets()
public void setUseBrackets(boolean useBrackets)
public void builderItemList(StatementSqlBuilder builder)
ItemListBuildProcessor
builderItemList
in interface ItemListBuildProcessor
public void builderFromItem(StatementSqlBuilder builder)
FromItemBuildProcessor
builderFromItem
in interface FromItemBuildProcessor
public void builderExpression(StatementSqlBuilder builder)
ExpressionBuildProcessor
builderExpression
in interface ExpressionBuildProcessor
Copyright © 2006–2018 TinyGroup. All rights reserved.