public class CreateTable extends SchemaCommand
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.
|
void |
addConstraintCommand(DefineCommand command)
Add a constraint statement to this statement.
|
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 |
setTableName(String tableName) |
void |
setTemporary(boolean temporary) |
int |
update()
Execute the statement.
|
getSchema
isReadOnly, isTransactional, queryMeta, setTransactional
checkCanceled, checkParameters, getCurrentObjectId, getCurrentRowNumber, getObjectId, getParameters, getPlanSQL, getSQL, getSQL, getSQL, isCacheable, isQuery, needRecompile, prepare, query, setCommand, 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)
column
- the column to addpublic void addConstraintCommand(DefineCommand command)
command
- the statement 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 © 2012 JBoss by Red Hat. All Rights Reserved.