Class SQLCreateViewStatement
- java.lang.Object
-
- com.alibaba.druid.sql.ast.SQLObjectImpl
-
- com.alibaba.druid.sql.ast.SQLStatementImpl
-
- com.alibaba.druid.sql.ast.statement.SQLCreateViewStatement
-
- All Implemented Interfaces:
SQLDbTypedObject,SQLObject,SQLStatement,SQLCreateStatement,SQLDDLStatement
public class SQLCreateViewStatement extends SQLStatementImpl implements SQLCreateStatement
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSQLCreateViewStatement.Columnstatic classSQLCreateViewStatement.Level-
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 booleanonClusterprotected List<SQLAssignItem>optionsprotected StringsqlSecurityprotected SQLSelectsubQueryprotected SQLExprTableSourcetableSource-
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 SQLCreateViewStatement()SQLCreateViewStatement(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
-
onCluster
protected boolean onCluster
-
options
protected List<SQLAssignItem> options
-
-
Constructor Detail
-
SQLCreateViewStatement
public SQLCreateViewStatement()
-
SQLCreateViewStatement
public SQLCreateViewStatement(DbType dbType)
-
-
Method Detail
-
isGlobal
public boolean isGlobal()
-
setGlobal
public void setGlobal(boolean global)
-
computeName
public String computeName()
-
getSchema
public String getSchema()
-
isOrReplace
public boolean isOrReplace()
-
setOrReplace
public void setOrReplace(boolean orReplace)
-
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)
-
isTemporary
public boolean isTemporary()
-
setTemporary
public void setTemporary(boolean temporary)
-
accept0
protected void accept0(SQLASTVisitor visitor)
- Overrides:
accept0in classSQLStatementImpl
-
getChildren
public List<SQLObject> getChildren()
- Specified by:
getChildrenin interfaceSQLStatement- Overrides:
getChildrenin classSQLStatementImpl
-
isOnCluster
public boolean isOnCluster()
-
setOnCluster
public void setOnCluster(boolean onCluster)
-
getTo
public SQLName getTo()
-
setTo
public void setTo(SQLName x)
-
getReturns
public SQLVariantRefExpr getReturns()
-
setReturns
public void setReturns(SQLVariantRefExpr x)
-
getReturnsDataType
public SQLTableDataType getReturnsDataType()
-
setReturnsDataType
public void setReturnsDataType(SQLTableDataType x)
-
getScript
public SQLBlockStatement getScript()
-
setScript
public void setScript(SQLBlockStatement x)
-
getDDLObjectType
public SQLDDLStatement.DDLObjectType getDDLObjectType()
- Specified by:
getDDLObjectTypein interfaceSQLDDLStatement
-
clone
public SQLCreateViewStatement clone()
- Specified by:
clonein interfaceSQLObject- Specified by:
clonein interfaceSQLStatement- Overrides:
clonein classSQLStatementImpl
-
getOptions
public List<SQLAssignItem> getOptions()
-
-