|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TableCreationBuilder
Builder object for Table creation.
| Method Summary | |
|---|---|
Table |
execute()
Commits the built table and requests that the table structure should be written to the DataContext. |
TableCreationBuilder |
like(Table table)
Builds this table's columns based on another Table which will be
used as a prototype. |
String |
toSql()
Gets a SQL representation of this create table operation. |
Table |
toTable()
Returns this builder instance as a table. |
ColumnCreationBuilder |
withColumn(String name)
Adds a column to the current builder |
| Method Detail |
|---|
TableCreationBuilder like(Table table)
Table which will be
used as a prototype. Using this method simplifies the creation of a table
that is similar to an existing table.
table - the Table to use as a prototype
ColumnCreationBuilder withColumn(String name)
name -
Table toTable()
String toSql()
Table execute()
throws MetaModelException
DataContext.
Table that was build
MetaModelException - if the DataContext was not able to create the table
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||