public class CreateTable extends CommandWithColumns
transactionalcreate, parameters, prepareAlways, session, sqlStatement, sqlTokens| 构造器和说明 |
|---|
CreateTable(SessionLocal session,
Schema schema) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addColumn(Column column)
Add a column to this table.
|
ArrayList<Column> |
getColumns() |
int |
getType()
Get the command type as defined in CommandInterface
|
void |
setComment(String comment) |
void |
setGlobalTemporary(boolean globalTemporary) |
void |
setHidden(boolean isHidden) |
void |
setIfNotExists(boolean ifNotExists) |
void |
setOnCommitDrop()
This temporary table is dropped on commit.
|
void |
setOnCommitTruncate()
This temporary table is truncated on commit.
|
void |
setPersistData(boolean persistData) |
void |
setPersistIndexes(boolean persistIndexes) |
void |
setQuery(Query query) |
void |
setTableEngine(String tableEngine) |
void |
setTableEngineParams(ArrayList<String> tableEngineParams) |
void |
setTableName(String tableName) |
void |
setTemporary(boolean temporary) |
void |
setWithNoData(boolean withNoData) |
long |
update()
Execute the statement.
|
addConstraintCommand, changePrimaryKeysToNotNull, createConstraints, generateSequences, getPrimaryKeygetSchemaisReadOnly, isTransactional, queryMeta, setTransactionalcheckCanceled, checkParameters, collectDependencies, getCteCleanups, getCurrentRowNumber, getObjectId, getParameters, getPersistedObjectId, getPlanSQL, getSession, getSimpleSQL, getSQL, getSQLTokens, isCacheable, isQuery, isWithParamValues, needRecompile, prepare, query, setCommand, setCteCleanups, setCurrentRowNumber, setParameterList, setPersistedObjectId, setPrepareAlways, setRow, setSession, setSQL, setWithParamValues, toStringpublic CreateTable(SessionLocal session, Schema schema)
public void setQuery(Query query)
public void setTemporary(boolean temporary)
public void setTableName(String tableName)
public void addColumn(Column column)
CommandWithColumnsaddColumn 在类中 CommandWithColumnscolumn - the column to addpublic void setIfNotExists(boolean ifNotExists)
public long update()
Preparedpublic void setPersistIndexes(boolean persistIndexes)
public void setGlobalTemporary(boolean globalTemporary)
public void setOnCommitDrop()
public void setOnCommitTruncate()
public void setComment(String comment)
public void setPersistData(boolean persistData)
public void setWithNoData(boolean withNoData)
public void setTableEngine(String tableEngine)
public void setHidden(boolean isHidden)
Copyright © 2022. All rights reserved.