public class CreateTable extends CommandWithColumns
transactional
create, parameters, prepareAlways, session, sqlStatement
Constructor and Description |
---|
CreateTable(Session session,
Schema schema) |
Modifier and Type | Method and Description |
---|---|
void |
addColumn(Column column)
Add a column to this table.
|
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 |
setSortedInsertMode(boolean sortedInsertMode) |
void |
setTableEngine(String tableEngine) |
void |
setTableEngineParams(ArrayList<String> tableEngineParams) |
void |
setTableName(String tableName) |
void |
setTemporary(boolean temporary) |
int |
update()
Execute the statement.
|
addConstraintCommand, changePrimaryKeysToNotNull, createConstraints, generateSequences
getSchema
isReadOnly, isTransactional, queryMeta, setTransactional
checkCanceled, checkParameters, getCteCleanups, getCurrentObjectId, getCurrentRowNumber, getObjectId, getParameters, getPlanSQL, getSession, getSQL, getSQL, getSQL, isCacheable, isQuery, needRecompile, prepare, query, setCommand, setCteCleanups, setCurrentRowNumber, setObjectId, setParameterList, setPrepareAlways, setRow, setSession, setSQL, toString
public void setQuery(Query query)
public void setTemporary(boolean temporary)
public void setTableName(String tableName)
public void addColumn(Column column)
CommandWithColumns
addColumn
in class CommandWithColumns
column
- the column to addpublic void setIfNotExists(boolean ifNotExists)
public int update()
Prepared
public 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 setSortedInsertMode(boolean sortedInsertMode)
public void setTableEngine(String tableEngine)
public void setHidden(boolean isHidden)
Copyright © 2020 JBoss by Red Hat. All rights reserved.