|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eobjects.metamodel.create.AbstractTableCreationBuilder<U>
public abstract class AbstractTableCreationBuilder<U extends UpdateCallback>
Abstract TableCreationBuilder implementation, provided as convenience
for TableCreatable implementations. Handles all the building
operations, but not the commit operation.
| Constructor Summary | |
|---|---|
AbstractTableCreationBuilder(U updateCallback,
Schema schema,
String name)
|
|
| Method Summary | |
|---|---|
protected Schema |
getSchema()
|
protected MutableTable |
getTable()
|
protected U |
getUpdateCallback()
|
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. |
String |
toString()
|
Table |
toTable()
Returns this builder instance as a table. |
ColumnCreationBuilder |
withColumn(String name)
Adds a column to the current builder |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eobjects.metamodel.create.TableCreationBuilder |
|---|
execute |
| Constructor Detail |
|---|
public AbstractTableCreationBuilder(U updateCallback,
Schema schema,
String name)
| Method Detail |
|---|
protected U getUpdateCallback()
protected Schema getSchema()
protected MutableTable getTable()
public Table toTable()
TableCreationBuilder
toTable in interface TableCreationBuilderpublic TableCreationBuilder like(Table table)
TableCreationBuilderTable which will be
used as a prototype. Using this method simplifies the creation of a table
that is similar to an existing table.
like in interface TableCreationBuildertable - the Table to use as a prototype
public ColumnCreationBuilder withColumn(String name)
TableCreationBuilder
withColumn in interface TableCreationBuilderpublic String toString()
toString in class Objectpublic String toSql()
TableCreationBuilder
toSql in interface TableCreationBuilder
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||