public class SQLCreateTableStatement extends SQLStatementImpl implements SQLDDLStatement, SQLCreateStatement
| Modifier and Type | Class and Description |
|---|---|
static class |
SQLCreateTableStatement.Type |
| Constructor and Description |
|---|
SQLCreateTableStatement() |
SQLCreateTableStatement(DbType dbType) |
getDbType, getHeadHintsDirect, isAfterSemi, setAfterSemi, setDbType, setHeadHints, toLowerCaseString, toParameterizedString, toString, toUnformattedStringaccept, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, computeDataType, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getHint, getParent, getSourceColumn, getSourceLine, hasAfterComment, hasBeforeComment, output, output, putAttribute, setHint, setParent, setSourceColumn, setSourceLineequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDbType, getHeadHintsDirect, isAfterSemi, setAfterSemi, setHeadHints, toLowerCaseString, toParameterizedString, toStringaccept, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getParent, hasAfterComment, hasBeforeComment, output, output, putAttribute, setParentpublic SQLCreateTableStatement()
public SQLCreateTableStatement(DbType dbType)
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 in interface SQLStatementgetChildren in class 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)
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 in interface SQLObjectclone in interface SQLStatementclone in class SQLStatementImplpublic String toString()
toString in interface SQLStatementtoString in class 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–2021 Alibaba Group. All rights reserved.