public class SQLCreateTableStatement extends SQLStatementImpl implements SQLDDLStatement, SQLCreateStatement
| Modifier and Type | Class and Description |
|---|---|
static class |
SQLCreateTableStatement.Type |
| Constructor and Description |
|---|
SQLCreateTableStatement() |
SQLCreateTableStatement(String dbType) |
getDbType, getHeadHintsDirect, isAfterSemi, setAfterSemi, setDbType, setHeadHints, toLowerCaseStringaccept, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, computeDataType, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getParent, hasAfterComment, hasBeforeComment, output, putAttribute, setParentequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDbType, isAfterSemi, setAfterSemi, toLowerCaseStringaccept, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getParent, hasAfterComment, hasBeforeComment, output, putAttribute, setParentpublic SQLCreateTableStatement()
public SQLCreateTableStatement(String dbType)
public SQLExpr getComment()
public void setComment(SQLExpr comment)
public SQLName getName()
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 SQLCreateTableStatement.Type getType()
public void setType(SQLCreateTableStatement.Type type)
public List<SQLTableElement> getTableElementList()
public boolean isIfNotExiists()
public void setIfNotExiists(boolean ifNotExiists)
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 tablespace)
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 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 SQLName getStoredAs()
public void setStoredAs(SQLName x)
public SQLCreateTableStatement clone()
clone in interface SQLObjectclone in interface SQLStatementclone in class SQLStatementImplpublic String toString()
toString in class SQLStatementImplpublic boolean isOnCommitPreserveRows()
public void setOnCommitPreserveRows(boolean onCommitPreserveRows)
public List<SQLSelectOrderByItem> getSortedBy()
public void addSortedByItem(SQLSelectOrderByItem item)
public int getBuckets()
public void setBuckets(int buckets)
public List<SQLColumnDefinition> getPartitionColumns()
public void addPartitionColumn(SQLColumnDefinition column)
public SQLExternalRecordFormat getRowFormat()
public void setRowFormat(SQLExternalRecordFormat x)
public boolean isPrimaryColumn(long columnNameHash)
Copyright © 2013–2018 Alibaba Group. All rights reserved.