public class CreateTable extends Object implements Statement
Constructor and Description |
---|
CreateTable() |
Modifier and Type | Method and Description |
---|---|
void |
accept(StatementVisitor statementVisitor) |
List<ColumnDefinition> |
getColumnDefinitions()
A list of
ColumnDefinition s of this table. |
List<Index> |
getIndexes()
A list of
Index es (for example "PRIMARY KEY") of this table.Indexes created with column definitions (as in mycol INT PRIMARY KEY) are not inserted into this list. |
Select |
getSelect() |
Table |
getTable()
The name of the table to be created
|
List<?> |
getTableOptionsStrings()
A list of options (as simple strings) of this table definition, as
("TYPE", "=", "MYISAM")
|
boolean |
isUnlogged()
Whether the table is unlogged or not (PostgreSQL 9.1+ feature)
|
void |
setColumnDefinitions(List<ColumnDefinition> list) |
void |
setIndexes(List<Index> list) |
void |
setSelect(Select select) |
void |
setTable(Table table) |
void |
setTableOptionsStrings(List<String> list) |
void |
setUnlogged(boolean unlogged) |
String |
toString() |
public void accept(StatementVisitor statementVisitor)
public Table getTable()
public void setTable(Table table)
public boolean isUnlogged()
public void setUnlogged(boolean unlogged)
public List<ColumnDefinition> getColumnDefinitions()
ColumnDefinition
s of this table.public void setColumnDefinitions(List<ColumnDefinition> list)
public List<?> getTableOptionsStrings()
public List<Index> getIndexes()
Index
es (for example "PRIMARY KEY") of this table.public Select getSelect()
public void setSelect(Select select)
Copyright © 2006–2018 TinyGroup. All rights reserved.