public class SQLCreateTableStatement extends SQLStatementImpl implements SQLDDLStatement, SQLCreateStatement
| 限定符和类型 | 类和说明 |
|---|---|
static class |
SQLCreateTableStatement.Type |
| 限定符和类型 | 字段和说明 |
|---|---|
protected int |
buckets |
protected List<SQLSelectOrderByItem> |
clusteredBy |
protected SQLExpr |
comment |
protected Boolean |
compress |
protected boolean |
ifNotExiists |
protected SQLExprTableSource |
inherits |
protected SQLExprTableSource |
like |
protected Boolean |
logging |
protected boolean |
onCommitDeleteRows |
protected boolean |
onCommitPreserveRows |
protected List<SQLColumnDefinition> |
partitionColumns |
protected SQLPartitionBy |
partitioning |
protected SQLExternalRecordFormat |
rowFormat |
protected SQLSelect |
select |
protected List<SQLSelectOrderByItem> |
sortedBy |
protected SQLName |
storedAs |
protected List<SQLTableElement> |
tableElementList |
protected Map<String,SQLObject> |
tableOptions |
protected SQLExprTableSource |
tableSource |
protected SQLName |
tablespace |
protected SQLCreateTableStatement.Type |
type |
afterSemi, dbType, headHintsattributes, parent| 构造器和说明 |
|---|
SQLCreateTableStatement() |
SQLCreateTableStatement(String dbType) |
getDbType, getHeadHintsDirect, isAfterSemi, setAfterSemi, setDbType, setHeadHints, toLowerCaseStringaccept, acceptChild, acceptChild, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, computeDataType, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getParent, hasAfterComment, hasBeforeComment, output, putAttribute, setParentgetDbType, getHeadHintsDirect, isAfterSemi, setAfterSemi, setHeadHints, toLowerCaseStringaccept, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getParent, hasAfterComment, hasBeforeComment, output, putAttribute, setParentprotected boolean ifNotExiists
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 SQLName storedAs
protected boolean onCommitPreserveRows
protected boolean onCommitDeleteRows
protected SQLExternalRecordFormat rowFormat
protected final List<SQLColumnDefinition> partitionColumns
protected final List<SQLSelectOrderByItem> clusteredBy
protected final List<SQLSelectOrderByItem> sortedBy
protected int buckets
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)
protected void accept0(SQLASTVisitor visitor)
accept0 在类中 SQLStatementImplpublic 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 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)
private boolean apply(SQLAlterTableRenameColumn item)
private boolean apply(SQLAlterTableRename item)
private boolean apply(SQLAlterTableDropForeignKey item)
private boolean apply(SQLAlterTableDropKey item)
private boolean apply(SQLAlterTableDropConstraint item)
private boolean apply(SQLAlterTableDropIndex item)
private boolean apply(SQLAlterTableDropPrimaryKey item)
private boolean apply(SQLAlterTableAddConstraint item)
private boolean apply(SQLAlterTableDropColumnItem item)
protected boolean apply(SQLAlterTableAddIndex item)
private boolean apply(SQLAlterTableAddColumn item)
protected int columnIndexOf(SQLName column)
public void cloneTo(SQLCreateTableStatement x)
public SQLName getStoredAs()
public void setStoredAs(SQLName x)
public SQLCreateTableStatement clone()
clone 在接口中 SQLObjectclone 在接口中 SQLStatementclone 在类中 SQLStatementImplpublic String toString()
toString 在类中 SQLStatementImplpublic boolean isOnCommitPreserveRows()
public void setOnCommitPreserveRows(boolean onCommitPreserveRows)
public List<SQLSelectOrderByItem> getClusteredBy()
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)
public void addClusteredByItem(SQLSelectOrderByItem item)
Copyright © 2013–2019 Alibaba Group. All rights reserved.