Class MySqlCreateTableStatement
java.lang.Object
com.alibaba.druid.sql.ast.SQLObjectImpl
com.alibaba.druid.sql.ast.SQLStatementImpl
com.alibaba.druid.sql.ast.statement.SQLCreateTableStatement
com.alibaba.druid.sql.dialect.mysql.ast.statement.MySqlCreateTableStatement
- All Implemented Interfaces:
SQLDbTypedObject,SQLObject,SQLStatement,SQLCreateStatement,SQLDDLStatement,MySqlObject,MySqlStatement
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.alibaba.druid.sql.ast.statement.SQLCreateTableStatement
SQLCreateTableStatement.TypeNested classes/interfaces inherited from interface com.alibaba.druid.sql.ast.statement.SQLDDLStatement
SQLDDLStatement.DDLObjectType -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected SQLNameprotected SQLExprprotected SQLExprprotected SQLNameprotected MySqlExtPartitionprotected booleanprotected Booleanprotected SQLNameprotected SQLExprprotected SQLExprprotected Booleanprotected SQLStatementFields inherited from class com.alibaba.druid.sql.ast.statement.SQLCreateTableStatement
buckets, clusteredBy, clusteringType, comment, compress, dimension, engine, external, ifNotExists, ignore, inherits, like, localPartitioning, location, logging, onCommitDeleteRows, onCommitPreserveRows, partitionColumns, partitioning, partitionOf, replace, rowFormat, select, shards, sortedBy, storedAs, tableElementList, tableOptions, tableSource, tablespace, tblProperties, typeFields 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 TypeMethodDescriptionvoidaccept0(AdsOutputVisitor visitor) voidaccept0(MySqlASTVisitor visitor) protected voidaccept0(SQLASTVisitor visitor) protected booleanalterApply(SQLAlterTableItem item) booleanapply(SQLAlterCharacter item) booleanapply(SQLAlterTableAddIndex item) booleanbooleanbooleanbooleanapply(MySqlAlterTableOption item) booleanbooleanclone()voidgetHints()getQuery()Deprecated.getWith()booleanvoidsetArchiveBy(SQLName archiveBy) voidsetBroadCast(boolean broadCast) voidvoidvoidsetDistributeByType(SQLName distributeByType) voidvoidvoidsetHints(List<SQLCommentHint> hints) voidsetOptionHints(List<SQLCommentHint> optionHints) voidvoidDeprecated.voidvoidsetStoredBy(SQLName storedBy) voidsetTableGroup(SQLName tableGroup) voidsetTableGroup(String tableGroup) voidvoidvoidvoidsetWithData(Boolean withData) voidsetWithSelect(SQLStatement withSelect) voidshowCoumns(StringBuilder out) voidsimplify()Methods inherited from class com.alibaba.druid.sql.ast.statement.SQLCreateTableStatement
acceptChild, addBodyBeforeComment, addClusteredByItem, addColumn, addColumn, addOption, addPartitionColumn, addSortedByItem, addTblProperty, apply, apply, apply, cloneTo, columnIndexOf, computeName, containsDuplicateColumnNames, containsDuplicateColumnNames, findColumn, findColumn, findForeignKey, findIndex, findPrimaryKey, findUnique, forEachColumn, foreignKeyToAlterTable, getBodyBeforeCommentsDirect, getBuckets, getCatalog, getChildren, getClusteredBy, getClusteringType, getColumn, getColumnComments, getColumnDefinitions, getColumnNames, getComment, getCompress, getDDLObjectType, getInherits, getLike, getLocalPartitioning, getLocation, getLogging, getName, getOption, getOptionOrTblPropertyValue, getOptionValue, getPartitionColumns, getPartitioning, getPartitionOf, getPrimaryKeyNames, getRowFormat, getSchema, getSelect, getShards, getSortedBy, getStoredAs, getTableElementList, getTableName, getTableOptions, getTableSource, getTablespace, getTblProperties, getTblProperty, getTblPropertyValue, getType, hasBodyBeforeComment, hashForeignKey, isDimension, isExternal, isIfNotExists, isIgnore, isMUL, isOnCommitPreserveRows, isOnlyPrimaryKey, isPrimaryColumn, isPrimaryColumn, isReferenced, isReferenced, isReplace, isSingle, isUNI, renameColumn, setBuckets, setClusteringType, setComment, setCompress, setDimension, setExternal, setIfNotExiists, setIgnore, setInherits, setLike, setLike, setLocalPartitioning, setLocation, setLogging, setName, setName, setOnCommitPreserveRows, setPartitioning, setPartitionOf, setReplace, setRowFormat, setSchema, setSelect, setShards, setSingle, setStoredAs, setTableName, setTableSource, setTablespace, setType, sort, toStringMethods inherited from class com.alibaba.druid.sql.ast.SQLStatementImpl
getDbType, getHeadHintsDirect, isAfterSemi, setAfterSemi, setDbType, setHeadHints, toLowerCaseString, toParameterizedString, 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
getChildren, getDbType, getHeadHintsDirect, isAfterSemi, setAfterSemi, setHeadHints, toLowerCaseString, toParameterizedString, toString, toString
-
Field Details
-
dbPartitionBy
-
dbPartitions
-
tablePartitionBy
-
tablePartitions
-
exPartition
-
storedBy
-
distributeByType
-
distributeBy
-
isBroadCast
protected boolean isBroadCast -
with
-
withSelect
-
archiveBy
-
withData
-
single
-
-
Constructor Details
-
MySqlCreateTableStatement
public MySqlCreateTableStatement()
-
-
Method Details
-
getHints
-
setHints
-
getWithSelect
-
setWithSelect
-
getQuery
Deprecated. -
setQuery
Deprecated. -
accept0
- Overrides:
accept0in classSQLCreateTableStatement
-
accept0
-
accept0
- Specified by:
accept0in interfaceMySqlObject
-
getOptionHints
-
setOptionHints
-
getTableGroup
-
setTableGroup
-
setTableGroup
-
simplify
public void simplify()- Overrides:
simplifyin classSQLCreateTableStatement
-
showCoumns
- Throws:
IOException
-
getMysqlKeys
-
getMysqlIndexes
-
apply
-
alterApply
- Overrides:
alterApplyin classSQLCreateTableStatement
-
apply
- Overrides:
applyin classSQLCreateTableStatement
-
apply
-
apply
-
apply
-
apply
-
apply
-
apply
-
cloneTo
-
clone
- Specified by:
clonein interfaceSQLObject- Specified by:
clonein interfaceSQLStatement- Overrides:
clonein classSQLCreateTableStatement
-
getDbPartitionBy
-
setDbPartitionBy
-
getTablePartitionBy
-
setTablePartitionBy
-
getDistributeByType
-
setDistributeByType
-
getDistributeBy
-
getTbpartitions
-
getTablePartitions
-
setTablePartitions
-
getDbpartitions
-
setDbPartitions
-
getExtPartition
-
setExPartition
-
getDbPartitions
-
getStoredBy
-
setStoredBy
-
getWith
-
isBroadCast
public boolean isBroadCast() -
setBroadCast
public void setBroadCast(boolean broadCast) -
getArchiveBy
-
setArchiveBy
-
getWithData
-
setWithData
-
getEngine
- Overrides:
getEnginein classSQLCreateTableStatement
-
setEngine
- Overrides:
setEnginein classSQLCreateTableStatement
-
setPageChecksum
-
setTransactional
-
getSingle
-
setSingle
-