Class SQLUpdateStatement
java.lang.Object
com.alibaba.druid.sql.ast.SQLObjectImpl
com.alibaba.druid.sql.ast.SQLStatementImpl
com.alibaba.druid.sql.ast.statement.SQLUpdateStatement
- All Implemented Interfaces:
SQLDbTypedObject,SQLObject,SQLReplaceable,SQLStatement
- Direct Known Subclasses:
MySqlUpdateStatement,OracleUpdateStatement,OscarUpdateStatement,PGUpdateStatement,SQLServerUpdateStatement
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected SQLTableSourceprotected final List<SQLUpdateSetItem>protected SQLOrderByprotected List<SQLAssignItem>protected SQLTableSourceprotected SQLExprprotected SQLWithSubqueryClauseFields inherited from class com.alibaba.druid.sql.ast.SQLStatementImpl
afterSemi, dbType, headHintsFields inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
attributes, hint, parent, sourceColumn, sourceLine -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaccept0(SQLASTVisitor visitor) protected voidacceptChild(SQLASTVisitor visitor) voidaddCondition(SQLExpr expr) voidaddCondition(String conditionSql) voidaddItem(SQLUpdateSetItem item) booleanclone()voidbooleangetFrom()getItems()getWhere()getWith()inthashCode()booleanremoveCondition(SQLExpr condition) booleanremoveCondition(String conditionSql) booleanvoidsetFrom(SQLTableSource from) voidsetOrderBy(SQLOrderBy orderBy) voidsetPartitions(List<SQLAssignItem> partitions) voidsetTableSource(SQLExpr expr) voidsetTableSource(SQLTableSource tableSource) voidvoidsetWith(SQLWithSubqueryClause with) Methods inherited from class com.alibaba.druid.sql.ast.SQLStatementImpl
getDbType, getHeadHintsDirect, isAfterSemi, setAfterSemi, setDbType, setHeadHints, toLowerCaseString, toParameterizedString, toString, toString, toUnformattedStringMethods inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
accept, acceptChild, acceptChild, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, computeDataType, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getHint, getParent, getSourceColumn, getSourceLine, hasAfterComment, hasBeforeComment, output, output, putAttribute, setHint, setParent, setSourceColumn, setSourceLineMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.alibaba.druid.sql.ast.SQLObject
accept, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getParent, hasAfterComment, hasBeforeComment, output, output, putAttribute, setParent
-
Field Details
-
with
-
items
-
where
-
from
-
tableSource
-
returning
-
partitions
-
orderBy
-
-
Constructor Details
-
SQLUpdateStatement
public SQLUpdateStatement() -
SQLUpdateStatement
-
-
Method Details
-
cloneTo
-
clone
- Specified by:
clonein interfaceSQLObject- Specified by:
clonein interfaceSQLStatement- Overrides:
clonein classSQLStatementImpl
-
getTableSource
-
setTableSource
-
setTableSource
-
getTableName
-
getPartitions
-
setPartitions
-
getWhere
-
setWhere
-
getItems
-
addItem
-
getReturning
-
getFrom
-
setFrom
-
accept0
- Overrides:
accept0in classSQLStatementImpl
-
acceptChild
-
getChildren
- Specified by:
getChildrenin interfaceSQLStatement- Overrides:
getChildrenin classSQLStatementImpl
-
replace
- Specified by:
replacein interfaceSQLReplaceable
-
getOrderBy
-
setOrderBy
-
getWith
-
setWith
-
addCondition
-
addCondition
-
removeCondition
-
removeCondition
-
equals
-
hashCode
public int hashCode() -
addWhere
-