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
public class SQLDropTableStatement extends SQLStatementImpl implements SQLDropStatement
-
-
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 booleancascadeprotected booleanifExistsprotected booleanpurgeprotected booleanrestrictprotected List<SQLExprTableSource>tableSources-
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 SQLDropTableStatement()SQLDropTableStatement(DbType dbType)SQLDropTableStatement(SQLName name)SQLDropTableStatement(SQLName name, DbType dbType)SQLDropTableStatement(SQLExprTableSource tableSource)SQLDropTableStatement(SQLExprTableSource tableSource, 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
finalize, getClass, 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
-
tableSources
protected List<SQLExprTableSource> tableSources
-
purge
protected boolean purge
-
cascade
protected boolean cascade
-
restrict
protected boolean restrict
-
ifExists
protected boolean ifExists
-
-
Constructor Detail
-
SQLDropTableStatement
public SQLDropTableStatement()
-
SQLDropTableStatement
public SQLDropTableStatement(DbType dbType)
-
SQLDropTableStatement
public SQLDropTableStatement(SQLName name)
-
SQLDropTableStatement
public SQLDropTableStatement(SQLExprTableSource tableSource)
-
SQLDropTableStatement
public SQLDropTableStatement(SQLExprTableSource tableSource, DbType dbType)
-
-
Method Detail
-
getTableSources
public List<SQLExprTableSource> getTableSources()
-
addPartition
public void addPartition(SQLExprTableSource tableSource)
-
setName
public void setName(SQLName name)
-
addTableSource
public void addTableSource(String name)
-
addTableSource
public void addTableSource(SQLName name)
-
addTableSource
public void addTableSource(SQLExprTableSource tableSource)
-
accept0
protected void accept0(SQLASTVisitor visitor)
- Overrides:
accept0in classSQLStatementImpl
-
getChildren
public List 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
public List<SQLCommentHint> getHints()
-
setHints
public void setHints(List<SQLCommentHint> hints)
-
isDropPartition
public boolean isDropPartition()
-
setDropPartition
public void setDropPartition(boolean dropPartition)
-
getWhere
public SQLExpr getWhere()
-
setWhere
public void setWhere(SQLExpr x)
-
getDDLObjectType
public SQLDDLStatement.DDLObjectType getDDLObjectType()
- Specified by:
getDDLObjectTypein interfaceSQLDDLStatement
-
getName
public SQLName getName()
- Specified by:
getNamein interfaceSQLDropStatement
-
cloneTo
protected void cloneTo(SQLDropTableStatement x)
-
clone
public SQLDropTableStatement clone()
- Specified by:
clonein interfaceSQLObject- Specified by:
clonein interfaceSQLStatement- Overrides:
clonein classSQLStatementImpl
-
-