Class SQLSetStatement
- java.lang.Object
-
- com.alibaba.druid.sql.ast.SQLObjectImpl
-
- com.alibaba.druid.sql.ast.SQLStatementImpl
-
- com.alibaba.druid.sql.ast.statement.SQLSetStatement
-
- All Implemented Interfaces:
SQLDbTypedObject,SQLObject,SQLStatement
public class SQLSetStatement extends SQLStatementImpl
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSQLSetStatement.Option
-
Field Summary
-
Fields inherited from class com.alibaba.druid.sql.ast.SQLStatementImpl
afterSemi, dbType, headHints
-
Fields inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
attributes, hint, parent, sourceColumn, sourceLine
-
-
Constructor Summary
Constructors Constructor Description SQLSetStatement()SQLSetStatement(DbType dbType)SQLSetStatement(SQLExpr target, SQLExpr value)SQLSetStatement(SQLExpr target, SQLExpr value, DbType dbType)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaccept0(SQLASTVisitor visitor)SQLSetStatementclone()ListgetChildren()List<SQLCommentHint>getHints()List<SQLAssignItem>getItems()SQLStatementgetMaridbSetForStatement()SQLSetStatement.OptiongetOption()booleanisUseSet()voidoutput(StringBuilder buf)static SQLSetStatementplus(SQLName target)voidset(SQLExpr target, SQLExpr value)voidsetHints(List<SQLCommentHint> hints)voidsetItems(List<SQLAssignItem> items)voidsetMaridbSetForStatement(SQLStatement maridbSetForStatement)voidsetOption(SQLSetStatement.Option option)voidsetUseSet(boolean useSet)-
Methods inherited from class com.alibaba.druid.sql.ast.SQLStatementImpl
cloneTo, getDbType, getHeadHintsDirect, isAfterSemi, setAfterSemi, setDbType, setHeadHints, toLowerCaseString, toParameterizedString, toString, toString, toUnformattedString
-
Methods inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
accept, acceptChild, acceptChild, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, cloneTo, computeDataType, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getHint, getParent, getParent, getSourceColumn, getSourceLine, hasAfterComment, hasBeforeComment, putAttribute, setHint, setParent, setSource, setSourceLine
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.alibaba.druid.sql.ast.SQLObject
accept, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getParent, getParent, getSourceColumn, getSourceLine, hasAfterComment, hasBeforeComment, putAttribute, setParent, setSource
-
-
-
-
Method Detail
-
plus
public static SQLSetStatement plus(SQLName target)
-
getItems
public List<SQLAssignItem> getItems()
-
setItems
public void setItems(List<SQLAssignItem> items)
-
getHints
public List<SQLCommentHint> getHints()
-
setHints
public void setHints(List<SQLCommentHint> hints)
-
getOption
public SQLSetStatement.Option getOption()
-
setOption
public void setOption(SQLSetStatement.Option option)
-
isUseSet
public boolean isUseSet()
-
setUseSet
public void setUseSet(boolean useSet)
-
getMaridbSetForStatement
public SQLStatement getMaridbSetForStatement()
-
setMaridbSetForStatement
public void setMaridbSetForStatement(SQLStatement maridbSetForStatement)
-
accept0
protected void accept0(SQLASTVisitor visitor)
- Overrides:
accept0in classSQLStatementImpl
-
output
public void output(StringBuilder buf)
- Specified by:
outputin interfaceSQLObject- Overrides:
outputin classSQLObjectImpl
-
clone
public SQLSetStatement clone()
- Specified by:
clonein interfaceSQLObject- Specified by:
clonein interfaceSQLStatement- Overrides:
clonein classSQLStatementImpl
-
getChildren
public List getChildren()
- Specified by:
getChildrenin interfaceSQLStatement- Overrides:
getChildrenin classSQLStatementImpl
-
-