public interface TableCreationBuilder
Table
creation.Modifier and Type | Method and Description |
---|---|
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
|
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 prototypeColumnCreationBuilder withColumn(String name)
name
- Table toTable()
String toSql()
Table execute() throws MetaModelException
DataContext
.Table
that was buildMetaModelException
- if the DataContext
was not able to create the tableCopyright © 2007–2015 The Apache Software Foundation. All rights reserved.