public class UpdateBody extends Object implements StatementBody
Constructor and Description |
---|
UpdateBody() |
Modifier and Type | Method and Description |
---|---|
void |
builderStatement(StatementSqlBuilder builder)
实现接口的sql片段通过builder.appendSql(String
segment)进行拼接,也可以builder.getStringBuilder方法获取StringBuilder,然后进行append
实现的参数信息通过builder.addParamValue(Object...
|
List<Column> |
getColumns() |
List<Column> |
getCopyColumns() |
List<Expression> |
getCopyExpressions() |
List<Expression> |
getExpressions()
The
Expression s in this update (as 'a' and 'b' in UPDATE
col1='a', col2='b') |
FromItem |
getFromItem() |
List<Join> |
getJoins() |
SelectBody |
getSelectBody() |
List<Table> |
getTables() |
Expression |
getWhere() |
boolean |
isUseColumnsBrackets() |
boolean |
isUseSelect() |
void |
removeColumn(Column column) |
void |
removeColumn(int index) |
void |
removeExpression(Expression expression) |
void |
removeExpression(int index) |
void |
setColumns(List<Column> list) |
void |
setExpressions(List<Expression> list) |
void |
setFromItem(FromItem fromItem) |
void |
setJoins(List<Join> joins) |
void |
setSelectBody(SelectBody selectBody) |
void |
setTables(List<Table> list) |
void |
setUseColumnsBrackets(boolean useColumnsBrackets) |
void |
setUseSelect(boolean useSelect) |
void |
setWhere(Expression expression) |
String |
toString() |
public Expression getWhere()
public void setWhere(Expression expression)
public List<Expression> getExpressions()
Expression
s in this update (as 'a' and 'b' in UPDATE
col1='a', col2='b')Expression
spublic void setExpressions(List<Expression> list)
public List<Expression> getCopyExpressions()
public FromItem getFromItem()
public void setFromItem(FromItem fromItem)
public SelectBody getSelectBody()
public void setSelectBody(SelectBody selectBody)
public boolean isUseColumnsBrackets()
public void setUseColumnsBrackets(boolean useColumnsBrackets)
public boolean isUseSelect()
public void setUseSelect(boolean useSelect)
public void removeColumn(int index)
public void removeColumn(Column column)
public void removeExpression(int index)
public void removeExpression(Expression expression)
public void builderStatement(StatementSqlBuilder builder)
StatementBuildProcessor
builderStatement
in interface StatementBuildProcessor
Copyright © 2006–2018 TinyGroup. All rights reserved.