Class SQLDropTableStatement
java.lang.Object
com.alibaba.druid.sql.ast.SQLObjectImpl
com.alibaba.druid.sql.ast.SQLStatementImpl
com.alibaba.druid.sql.ast.statement.SQLDropTableStatement
- All Implemented Interfaces:
SQLDbTypedObject,SQLObject,SQLStatement,SQLDDLStatement,SQLDropStatement
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.alibaba.druid.sql.ast.statement.SQLDDLStatement
SQLDDLStatement.DDLObjectType -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected booleanprotected booleanprotected booleanprotected List<SQLExprTableSource>Fields 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
ConstructorsConstructorDescriptionSQLDropTableStatement(DbType dbType) SQLDropTableStatement(SQLName name) SQLDropTableStatement(SQLName name, DbType dbType) SQLDropTableStatement(SQLExprTableSource tableSource) SQLDropTableStatement(SQLExprTableSource tableSource, DbType dbType) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaccept0(SQLASTVisitor visitor) voidaddPartition(SQLExprTableSource tableSource) voidaddTableSource(SQLName name) voidaddTableSource(SQLExprTableSource tableSource) getHints()getName()getWhere()booleanbooleanbooleanbooleanbooleanisPurge()booleanbooleanvoidsetCascade(boolean cascade) voidsetDropPartition(boolean dropPartition) voidsetExternal(boolean external) voidsetHints(List<SQLCommentHint> hints) voidsetIfExists(boolean ifExists) voidvoidsetPurge(boolean purge) voidsetRestrict(boolean restrict) voidsetTemporary(boolean temporary) voidMethods inherited from class com.alibaba.druid.sql.ast.SQLStatementImpl
clone, 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
clone, getDbType, getHeadHintsDirect, isAfterSemi, setAfterSemi, setHeadHints, toLowerCaseString, toParameterizedString, toString, toString
-
Field Details
-
tableSources
-
purge
protected boolean purge -
cascade
protected boolean cascade -
restrict
protected boolean restrict -
ifExists
protected boolean ifExists
-
-
Constructor Details
-
SQLDropTableStatement
public SQLDropTableStatement() -
SQLDropTableStatement
-
SQLDropTableStatement
-
SQLDropTableStatement
-
SQLDropTableStatement
-
SQLDropTableStatement
-
-
Method Details
-
getTableSources
-
addPartition
-
setName
-
addTableSource
-
addTableSource
-
accept0
- Overrides:
accept0in classSQLStatementImpl
-
getChildren
- Specified by:
getChildrenin interfaceSQLStatement- Overrides:
getChildrenin classSQLStatementImpl
-
isPurge
public boolean isPurge() -
setPurge
public void setPurge(boolean purge) -
isIfExists
public boolean isIfExists() -
setIfExists
public void setIfExists(boolean ifExists) -
isCascade
public boolean isCascade() -
setCascade
public void setCascade(boolean cascade) -
isRestrict
public boolean isRestrict() -
setRestrict
public void setRestrict(boolean restrict) -
isTemporary
public boolean isTemporary() -
setTemporary
public void setTemporary(boolean temporary) -
isExternal
public boolean isExternal() -
setExternal
public void setExternal(boolean external) -
getHints
-
setHints
-
isDropPartition
public boolean isDropPartition() -
setDropPartition
public void setDropPartition(boolean dropPartition) -
getWhere
-
setWhere
-
getDDLObjectType
- Specified by:
getDDLObjectTypein interfaceSQLDDLStatement
-
getName
- Specified by:
getNamein interfaceSQLDropStatement
-