Class SQLAlterViewStatement
- java.lang.Object
-
- com.alibaba.druid.sql.ast.SQLObjectImpl
-
- com.alibaba.druid.sql.ast.SQLStatementImpl
-
- com.alibaba.druid.sql.ast.statement.SQLAlterViewStatement
-
- All Implemented Interfaces:
SQLDbTypedObject,SQLObject,SQLStatement,SQLCreateStatement,SQLDDLStatement
public class SQLAlterViewStatement extends SQLStatementImpl implements SQLCreateStatement
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.alibaba.druid.sql.ast.statement.SQLDDLStatement
SQLDDLStatement.DDLObjectType
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringalgorithmprotected List<SQLTableElement>columnsprotected SQLNamedefinerprotected booleanifNotExistsprotected List<SQLAssignItem>optionsprotected StringsqlSecurityprotected SQLSelectsubQueryprotected SQLExprTableSourcetableSourceprotected List<SQLName>unsetOptions-
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 SQLAlterViewStatement()SQLAlterViewStatement(DbType dbType)
-
Method Summary
-
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, output, 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, output, putAttribute, setParent, setSource
-
Methods inherited from interface com.alibaba.druid.sql.ast.SQLStatement
getDbType, getHeadHintsDirect, isAfterSemi, setAfterSemi, setHeadHints, toLowerCaseString, toParameterizedString, toString, toString
-
-
-
-
Field Detail
-
subQuery
protected SQLSelect subQuery
-
ifNotExists
protected boolean ifNotExists
-
algorithm
protected String algorithm
-
definer
protected SQLName definer
-
sqlSecurity
protected String sqlSecurity
-
tableSource
protected SQLExprTableSource tableSource
-
columns
protected final List<SQLTableElement> columns
-
options
protected final List<SQLAssignItem> options
-
-
Constructor Detail
-
SQLAlterViewStatement
public SQLAlterViewStatement()
-
SQLAlterViewStatement
public SQLAlterViewStatement(DbType dbType)
-
-
Method Detail
-
computeName
public String computeName()
-
getSchema
public String getSchema()
-
getName
public SQLName getName()
- Specified by:
getNamein interfaceSQLCreateStatement
-
setName
public void setName(SQLName name)
-
setName
public void setName(String name)
-
getTableSource
public SQLExprTableSource getTableSource()
-
setTableSource
public void setTableSource(SQLExprTableSource tableSource)
-
isWithCheckOption
public boolean isWithCheckOption()
-
setWithCheckOption
public void setWithCheckOption(boolean withCheckOption)
-
isWithCascaded
public boolean isWithCascaded()
-
setWithCascaded
public void setWithCascaded(boolean withCascaded)
-
isWithLocal
public boolean isWithLocal()
-
setWithLocal
public void setWithLocal(boolean withLocal)
-
isWithReadOnly
public boolean isWithReadOnly()
-
setWithReadOnly
public void setWithReadOnly(boolean withReadOnly)
-
getSubQuery
public SQLSelect getSubQuery()
-
setSubQuery
public void setSubQuery(SQLSelect subQuery)
-
getColumns
public List<SQLTableElement> getColumns()
-
addColumn
public void addColumn(SQLTableElement column)
-
isIfNotExists
public boolean isIfNotExists()
-
setIfNotExists
public void setIfNotExists(boolean ifNotExists)
-
getComment
public SQLLiteralExpr getComment()
-
setComment
public void setComment(SQLLiteralExpr comment)
-
getAlgorithm
public String getAlgorithm()
-
setAlgorithm
public void setAlgorithm(String algorithm)
-
getDefiner
public SQLName getDefiner()
-
setDefiner
public void setDefiner(SQLName definer)
-
getSqlSecurity
public String getSqlSecurity()
-
setSqlSecurity
public void setSqlSecurity(String sqlSecurity)
-
isForce
public boolean isForce()
-
setForce
public void setForce(boolean force)
-
accept0
protected void accept0(SQLASTVisitor visitor)
- Overrides:
accept0in classSQLStatementImpl
-
getChildren
public List<SQLObject> getChildren()
- Specified by:
getChildrenin interfaceSQLStatement- Overrides:
getChildrenin classSQLStatementImpl
-
clone
public SQLAlterViewStatement clone()
- Specified by:
clonein interfaceSQLObject- Specified by:
clonein interfaceSQLStatement- Overrides:
clonein classSQLStatementImpl
-
getDDLObjectType
public SQLDDLStatement.DDLObjectType getDDLObjectType()
- Specified by:
getDDLObjectTypein interfaceSQLDDLStatement
-
getOptions
public List<SQLAssignItem> getOptions()
-
-