public class SQLCreateTableStatement extends SQLStatementImpl implements SQLDDLStatement
| Modifier and Type | Class and Description |
|---|---|
static class |
SQLCreateTableStatement.Type |
| Constructor and Description |
|---|
SQLCreateTableStatement() |
SQLCreateTableStatement(String dbType) |
getDbType, isAfterSemi, setAfterSemi, setDbType, toStringaccept, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, clone, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getParent, hasAfterComment, hasBeforeComment, output, putAttribute, setParentequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDbType, isAfterSemi, setAfterSemiaccept, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, clone, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getParent, hasAfterComment, hasBeforeComment, output, putAttribute, setParentpublic SQLCreateTableStatement()
public SQLCreateTableStatement(String dbType)
public SQLName getName()
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 boolean hasBodyBeforeComment()
public String computeName()
public SQLColumnDefinition findColumn(String columName)
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()
Copyright © 2013–2017 Alibaba Group. All rights reserved.