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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected booleanprotected List<SQLAssignItem>protected List<SQLIntegerExpr>protected 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaccept0(SQLASTVisitor visitor) voidaddTableSource(SQLName name) booleanbooleanbooleanbooleanbooleanbooleanisOnly()booleanbooleanbooleanbooleanvoidsetCascade(Boolean cascade) voidsetContinueIdentity(boolean continueIdentity) voidsetDropStorage(boolean dropStorage) voidsetIfExists(boolean ifExists) voidsetIgnoreDeleteTriggers(boolean ignoreDeleteTriggers) voidsetImmediate(boolean immediate) voidsetOnly(boolean only) voidsetPartitionAll(boolean partitionAll) voidsetPurgeSnapshotLog(boolean purgeSnapshotLog) voidsetRestartIdentity(Boolean restartIdentity) voidsetRestrictWhenDeleteTriggers(boolean restrictWhenDeleteTriggers) voidsetReuseStorage(boolean reuseStorage) voidsetTableSources(List<SQLExprTableSource> tableSources) Methods 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, setParent
-
Field Details
-
tableSources
-
ifExists
protected boolean ifExists -
partitions
-
partitionAll
protected boolean partitionAll -
partitionsForADB
-
-
Constructor Details
-
SQLTruncateStatement
public SQLTruncateStatement() -
SQLTruncateStatement
-
-
Method Details
-
getTableSources
-
setTableSources
-
addTableSource
-
accept0
- Overrides:
accept0in classSQLStatementImpl
-
isPurgeSnapshotLog
public boolean isPurgeSnapshotLog() -
setPurgeSnapshotLog
public void setPurgeSnapshotLog(boolean purgeSnapshotLog) -
isOnly
public boolean isOnly() -
setOnly
public void setOnly(boolean only) -
getRestartIdentity
-
setRestartIdentity
-
getCascade
-
setCascade
-
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
- Specified by:
getChildrenin interfaceSQLStatement- Overrides:
getChildrenin classSQLStatementImpl
-
isIfExists
public boolean isIfExists() -
setIfExists
public void setIfExists(boolean ifExists) -
getPartitions
-
isPartitionAll
public boolean isPartitionAll() -
setPartitionAll
public void setPartitionAll(boolean partitionAll) -
getPartitionsForADB
-