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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumNested classes/interfaces inherited from interface com.alibaba.druid.sql.ast.statement.SQLDDLStatement
SQLDDLStatement.DDLObjectType -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected final List<SQLTableElement>protected SQLNameprotected booleanprotected booleanprotected Stringprotected SQLSelectprotected SQLExprTableSourceFields 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) voidaddColumn(SQLTableElement column) clone()getName()getTo()booleanisForce()booleanbooleanbooleanbooleanbooleanbooleanbooleanvoidsetAlgorithm(String algorithm) voidsetComment(SQLLiteralExpr comment) voidsetDefiner(SQLName definer) voidsetForce(boolean force) voidsetIfNotExists(boolean ifNotExists) voidvoidvoidsetOnCluster(boolean onCluster) voidsetOrReplace(boolean orReplace) voidvoidvoidvoidsetSqlSecurity(String sqlSecurity) voidsetSubQuery(SQLSelect subQuery) voidsetTableSource(SQLExprTableSource tableSource) voidvoidsetWithCascaded(boolean withCascaded) voidsetWithCheckOption(boolean withCheckOption) voidsetWithLocal(boolean withLocal) voidsetWithReadOnly(boolean withReadOnly) 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, putAttribute, setHint, setParent, setSourceColumn, setSourceLineMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, 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, putAttribute, setParentMethods inherited from interface com.alibaba.druid.sql.ast.SQLStatement
getDbType, getHeadHintsDirect, isAfterSemi, setAfterSemi, setHeadHints, toLowerCaseString, toParameterizedString, toString, toString
-
Field Details
-
subQuery
-
ifNotExists
protected boolean ifNotExists -
algorithm
-
definer
-
sqlSecurity
-
tableSource
-
columns
-
onCluster
protected boolean onCluster
-
-
Constructor Details
-
SQLCreateViewStatement
public SQLCreateViewStatement() -
SQLCreateViewStatement
-
-
Method Details
-
computeName
-
getSchema
-
isOrReplace
public boolean isOrReplace() -
setOrReplace
public void setOrReplace(boolean orReplace) -
getName
- Specified by:
getNamein interfaceSQLCreateStatement
-
setName
-
setName
-
getTableSource
-
setTableSource
-
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
-
setSubQuery
-
getColumns
-
addColumn
-
isIfNotExists
public boolean isIfNotExists() -
setIfNotExists
public void setIfNotExists(boolean ifNotExists) -
getComment
-
setComment
-
getAlgorithm
-
setAlgorithm
-
getDefiner
-
setDefiner
-
getSqlSecurity
-
setSqlSecurity
-
isForce
public boolean isForce() -
setForce
public void setForce(boolean force) -
accept0
- Overrides:
accept0in classSQLStatementImpl
-
getChildren
- Specified by:
getChildrenin interfaceSQLStatement- Overrides:
getChildrenin classSQLStatementImpl
-
isOnCluster
public boolean isOnCluster() -
setOnCluster
public void setOnCluster(boolean onCluster) -
getTo
-
setTo
-
getReturns
-
setReturns
-
getReturnsDataType
-
setReturnsDataType
-
getScript
-
setScript
-
getDDLObjectType
- Specified by:
getDDLObjectTypein interfaceSQLDDLStatement
-
clone
- Specified by:
clonein interfaceSQLObject- Specified by:
clonein interfaceSQLStatement- Overrides:
clonein classSQLStatementImpl
-