|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.h2.command.Prepared
org.h2.command.ddl.DefineCommand
org.h2.command.ddl.SchemaCommand
org.h2.command.ddl.CreateTable
public class CreateTable
This class represents the statement CREATE TABLE
Field Summary |
---|
Fields inherited from class org.h2.command.ddl.DefineCommand |
---|
transactional |
Fields inherited from class org.h2.command.Prepared |
---|
create, parameters, prepareAlways, session, sqlStatement |
Constructor Summary | |
---|---|
CreateTable(Session session,
Schema schema)
|
Method Summary | |
---|---|
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(java.lang.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(java.lang.String tableEngine)
|
void |
setTableName(java.lang.String tableName)
|
void |
setTemporary(boolean temporary)
|
int |
update()
Execute the statement. |
Methods inherited from class org.h2.command.ddl.SchemaCommand |
---|
getSchema |
Methods inherited from class org.h2.command.ddl.DefineCommand |
---|
isReadOnly, isTransactional, queryMeta, setTransactional |
Methods inherited from class org.h2.command.Prepared |
---|
checkCanceled, checkParameters, getCurrentObjectId, getCurrentRowNumber, getObjectId, getParameters, getPlanSQL, getSQL, getSQL, getSQL, isCacheable, isQuery, needRecompile, prepare, query, setCommand, setCurrentRowNumber, setObjectId, setParameterList, setPrepareAlways, setRow, setSession, setSQL, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CreateTable(Session session, Schema schema)
Method Detail |
---|
public void setQuery(Query query)
public void setTemporary(boolean temporary)
public void setTableName(java.lang.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
update
in class Prepared
public void setPersistIndexes(boolean persistIndexes)
public void setGlobalTemporary(boolean globalTemporary)
public void setOnCommitDrop()
public void setOnCommitTruncate()
public void setComment(java.lang.String comment)
public void setPersistData(boolean persistData)
public void setSortedInsertMode(boolean sortedInsertMode)
public void setTableEngine(java.lang.String tableEngine)
public void setHidden(boolean isHidden)
public int getType()
Prepared
getType
in class Prepared
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |