public final class CreateTable extends Object implements UpdateScript
UpdateableDataContext. Instead of providing a custom implementation
of the UpdateScript interface, one can use this pre-built create
table implementation. Some DataContexts may even optimize
specifically based on the knowledge that there will only be a single table
created.| Constructor and Description |
|---|
CreateTable(Schema schema,
String tableName) |
CreateTable(String schemaName,
String tableName) |
| Modifier and Type | Method and Description |
|---|---|
void |
run(UpdateCallback callback)
Invoked by MetaModel when the update script should be run.
|
CreateTableColumnBuilder |
withColumn(String name)
Adds a column to the current builder
|
public CreateTableColumnBuilder withColumn(String name)
name - public void run(UpdateCallback callback)
UpdateScriptUpdateCallback.run in interface UpdateScriptCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.