Class SQLTruncateStatement
- java.lang.Object
-
- com.alibaba.druid.sql.ast.SQLObjectImpl
-
- com.alibaba.druid.sql.ast.SQLStatementImpl
-
- com.alibaba.druid.sql.ast.statement.SQLTruncateStatement
-
- All Implemented Interfaces:
SQLDbTypedObject,SQLObject,SQLStatement
public class SQLTruncateStatement extends SQLStatementImpl
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanifExistsprotected booleanpartitionAllprotected List<SQLAssignItem>partitionsprotected List<SQLIntegerExpr>partitionsForADBprotected 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 SQLTruncateStatement()SQLTruncateStatement(DbType dbType)
-
Method Summary
-
Methods inherited from class com.alibaba.druid.sql.ast.SQLStatementImpl
clone, 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
-
-
-
-
Field Detail
-
tableSources
protected List<SQLExprTableSource> tableSources
-
ifExists
protected boolean ifExists
-
partitions
protected List<SQLAssignItem> partitions
-
partitionAll
protected boolean partitionAll
-
partitionsForADB
protected List<SQLIntegerExpr> partitionsForADB
-
-
Constructor Detail
-
SQLTruncateStatement
public SQLTruncateStatement()
-
SQLTruncateStatement
public SQLTruncateStatement(DbType dbType)
-
-
Method Detail
-
getTableSources
public List<SQLExprTableSource> getTableSources()
-
setTableSources
public void setTableSources(List<SQLExprTableSource> tableSources)
-
addTableSource
public void addTableSource(SQLName name)
-
accept0
protected void accept0(SQLASTVisitor visitor)
- Overrides:
accept0in classSQLStatementImpl
-
isPurgeSnapshotLog
public boolean isPurgeSnapshotLog()
-
setPurgeSnapshotLog
public void setPurgeSnapshotLog(boolean purgeSnapshotLog)
-
isOnly
public boolean isOnly()
-
setOnly
public void setOnly(boolean only)
-
getRestartIdentity
public Boolean getRestartIdentity()
-
setRestartIdentity
public void setRestartIdentity(Boolean restartIdentity)
-
getCascade
public Boolean getCascade()
-
setCascade
public void setCascade(Boolean cascade)
-
isDropStorage
public boolean isDropStorage()
-
setDropStorage
public void setDropStorage(boolean dropStorage)
-
isReuseStorage
public boolean isReuseStorage()
-
setReuseStorage
public void setReuseStorage(boolean reuseStorage)
-
isImmediate
public boolean isImmediate()
-
setImmediate
public void setImmediate(boolean immediate)
-
isIgnoreDeleteTriggers
public boolean isIgnoreDeleteTriggers()
-
setIgnoreDeleteTriggers
public void setIgnoreDeleteTriggers(boolean ignoreDeleteTriggers)
-
isRestrictWhenDeleteTriggers
public boolean isRestrictWhenDeleteTriggers()
-
setRestrictWhenDeleteTriggers
public void setRestrictWhenDeleteTriggers(boolean restrictWhenDeleteTriggers)
-
isContinueIdentity
public boolean isContinueIdentity()
-
setContinueIdentity
public void setContinueIdentity(boolean continueIdentity)
-
getChildren
public List getChildren()
- Specified by:
getChildrenin interfaceSQLStatement- Overrides:
getChildrenin classSQLStatementImpl
-
isIfExists
public boolean isIfExists()
-
setIfExists
public void setIfExists(boolean ifExists)
-
getPartitions
public List<SQLAssignItem> getPartitions()
-
isPartitionAll
public boolean isPartitionAll()
-
setPartitionAll
public void setPartitionAll(boolean partitionAll)
-
getPartitionsForADB
public List<SQLIntegerExpr> getPartitionsForADB()
-
-