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
accept, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, computeDataType, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getParent, hasAfterComment, hasBeforeComment, output, putAttribute, setParent
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDbType, isAfterSemi, setAfterSemi
accept, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getParent, hasAfterComment, hasBeforeComment, output, putAttribute, setParent
public 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 SQLStatement
getChildren
in class SQLStatementImpl
public 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 SQLObject
clone
in interface SQLStatement
clone
in class SQLStatementImpl
public String toString()
toString
in class SQLStatementImpl
public boolean isOnCommitPreserveRows()
public void setOnCommitPreserveRows(boolean onCommitPreserveRows)
Copyright © 2013–2017 Alibaba Group. All rights reserved.