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
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
protected boolean
protected boolean
protected boolean
protected List<SQLExprTableSource>
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
ConstructorDescriptionSQLDropTableStatement
(DbType dbType) SQLDropTableStatement
(SQLName name) SQLDropTableStatement
(SQLName name, DbType dbType) SQLDropTableStatement
(SQLExprTableSource tableSource) SQLDropTableStatement
(SQLExprTableSource tableSource, DbType dbType) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
accept0
(SQLASTVisitor visitor) void
addPartition
(SQLExprTableSource tableSource) void
addTableSource
(SQLName name) void
addTableSource
(SQLExprTableSource tableSource) getHints()
getWhere()
boolean
boolean
boolean
boolean
boolean
isPurge()
boolean
boolean
void
setCascade
(boolean cascade) void
setDropPartition
(boolean dropPartition) void
setExternal
(boolean external) void
setHints
(List<SQLCommentHint> hints) void
setIfExists
(boolean ifExists) void
void
setPurge
(boolean purge) void
setRestrict
(boolean restrict) void
setTemporary
(boolean temporary) void
Methods inherited from class com.alibaba.druid.sql.ast.SQLStatementImpl
clone, 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, computeDataType, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getHint, getParent, getSourceColumn, getSourceLine, hasAfterComment, hasBeforeComment, output, output, putAttribute, setHint, setParent, setSourceColumn, 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, hasAfterComment, hasBeforeComment, output, output, putAttribute, setParent
Methods 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:
accept0
in classSQLStatementImpl
-
getChildren
- Specified by:
getChildren
in interfaceSQLStatement
- Overrides:
getChildren
in 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
-