public class SQLCreateTableStatement extends SQLStatementImpl implements SQLDDLStatement, SQLCreateStatement
| 限定符和类型 | 类和说明 |
|---|---|
static class |
SQLCreateTableStatement.Type |
afterSemi, dbType, headHintsattributes, hint, parent, sourceColumn, sourceLine| 构造器和说明 |
|---|
SQLCreateTableStatement() |
SQLCreateTableStatement(DbType dbType) |
getDbType, getHeadHintsDirect, isAfterSemi, setAfterSemi, setDbType, setHeadHints, toLowerCaseString, toParameterizedString, toString, toUnformattedStringaccept, 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, setSourceLinegetDbType, getHeadHintsDirect, isAfterSemi, setAfterSemi, setHeadHints, toLowerCaseString, toParameterizedString, toStringaccept, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getParent, hasAfterComment, hasBeforeComment, output, output, putAttribute, setParentprotected boolean ifNotExists
protected SQLCreateTableStatement.Type type
protected SQLExprTableSource tableSource
protected List<SQLTableElement> tableElementList
protected SQLExprTableSource inherits
protected SQLSelect select
protected SQLExpr comment
protected SQLExprTableSource like
protected Boolean compress
protected Boolean logging
protected SQLName tablespace
protected SQLPartitionBy partitioning
protected SQLExpr storedAs
protected SQLExpr location
protected boolean onCommitPreserveRows
protected boolean onCommitDeleteRows
protected boolean external
protected SQLExternalRecordFormat rowFormat
protected final List<SQLColumnDefinition> partitionColumns
protected ClusteringType clusteringType
protected final List<SQLSelectOrderByItem> clusteredBy
protected final List<SQLSelectOrderByItem> sortedBy
protected int buckets
protected int shards
protected final List<SQLAssignItem> tableOptions
protected final List<SQLAssignItem> tblProperties
protected boolean replace
protected boolean ignore
protected boolean dimension
protected SQLExpr engine
public SQLCreateTableStatement()
public SQLCreateTableStatement(DbType dbType)
protected void accept0(SQLASTVisitor v)
accept0 在类中 SQLStatementImplprotected void acceptChild(SQLASTVisitor v)
public SQLExpr getComment()
public void setComment(SQLExpr comment)
public SQLName getName()
public String getTableName()
public String getSchema()
public void setSchema(String name)
public void setName(SQLName name)
public void setName(String name)
public SQLExprTableSource getTableSource()
public void setTableSource(SQLExprTableSource tableSource)
public void setTableName(String tableName)
public SQLCreateTableStatement.Type getType()
public void setType(SQLCreateTableStatement.Type type)
public List<SQLTableElement> getTableElementList()
public SQLColumnDefinition getColumn(String columnName)
public List<SQLColumnDefinition> getColumnDefinitions()
public void addColumn(SQLColumnDefinition column)
public boolean isIfNotExists()
public void setIfNotExiists(boolean ifNotExists)
public SQLExprTableSource getInherits()
public void setInherits(SQLExprTableSource inherits)
public SQLSelect getSelect()
public void setSelect(SQLSelect select)
public SQLExprTableSource getLike()
public void setLike(SQLName like)
public void setLike(SQLExprTableSource like)
public Boolean getCompress()
public void setCompress(Boolean compress)
public Boolean getLogging()
public void setLogging(Boolean logging)
public SQLName getTablespace()
public void setTablespace(SQLName x)
public SQLPartitionBy getPartitioning()
public void setPartitioning(SQLPartitionBy partitioning)
public List<SQLObject> getChildren()
getChildren 在接口中 SQLStatementgetChildren 在类中 SQLStatementImplpublic boolean hasBodyBeforeComment()
public String computeName()
public SQLColumnDefinition findColumn(String columName)
public SQLColumnDefinition findColumn(long columName_hash)
public boolean isPrimaryColumn(String columnName)
public boolean isPrimaryColumn(long columnNameHash)
public boolean isOnlyPrimaryKey(long columnNameHash)
public boolean isMUL(String columnName)
public boolean isUNI(String columnName)
public MySqlUnique findUnique(String columnName)
public SQLTableElement findIndex(String columnName)
public void forEachColumn(Consumer<SQLColumnDefinition> columnConsumer)
public SQLPrimaryKey findPrimaryKey()
public List<SQLForeignKeyConstraint> findForeignKey()
public boolean hashForeignKey()
public boolean isReferenced(SQLName tableName)
public boolean isReferenced(String tableName)
public SQLAlterTableStatement foreignKeyToAlterTable()
public static void sort(List<SQLStatement> stmtList)
public void simplify()
public boolean apply(SQLDropIndexStatement x)
public boolean apply(SQLCommentStatement x)
public boolean apply(SQLAlterTableStatement alter)
protected boolean alterApply(SQLAlterTableItem item)
protected boolean apply(SQLAlterTableAddIndex item)
protected int columnIndexOf(SQLName column)
public void cloneTo(SQLCreateTableStatement x)
public boolean isReplace()
public void setReplace(boolean replace)
public boolean isIgnore()
public void setIgnore(boolean ignore)
public SQLExpr getStoredAs()
public void setStoredAs(SQLExpr x)
public SQLCreateTableStatement clone()
clone 在接口中 SQLObjectclone 在接口中 SQLStatementclone 在类中 SQLStatementImplpublic String toString()
toString 在接口中 SQLStatementtoString 在类中 SQLStatementImplpublic boolean isOnCommitPreserveRows()
public void setOnCommitPreserveRows(boolean onCommitPreserveRows)
public boolean isExternal()
public void setExternal(boolean external)
public ClusteringType getClusteringType()
public void setClusteringType(ClusteringType clusteringType)
public List<SQLSelectOrderByItem> getClusteredBy()
public void addClusteredByItem(SQLSelectOrderByItem item)
public List<SQLSelectOrderByItem> getSortedBy()
public void addSortedByItem(SQLSelectOrderByItem item)
public int getBuckets()
public void setBuckets(int buckets)
public int getShards()
public void setShards(int shards)
public List<SQLColumnDefinition> getPartitionColumns()
public void addPartitionColumn(SQLColumnDefinition column)
public List<SQLAssignItem> getTableOptions()
public List<SQLAssignItem> getTblProperties()
public SQLExternalRecordFormat getRowFormat()
public void setRowFormat(SQLExternalRecordFormat x)
public boolean isDimension()
public void setDimension(boolean dimension)
public SQLExpr getLocation()
public void setLocation(SQLExpr x)
public String getCatalog()
public boolean containsDuplicateColumnNames()
public boolean containsDuplicateColumnNames(boolean throwException)
public SQLExpr getEngine()
public void setEngine(SQLExpr x)
Copyright © 2013–2023. All rights reserved.