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 DataContext
s 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)
UpdateScript
UpdateCallback
.run
in interface UpdateScript
run
in interface Action<UpdateCallback>
Copyright © 2007–2014 The Apache Software Foundation. All rights reserved.