org.eobjects.metamodel.create
Class CreateTable
java.lang.Object
org.eobjects.metamodel.create.CreateTable
- All Implemented Interfaces:
- UpdateScript, Action<UpdateCallback>
public final class CreateTable
- extends Object
- implements UpdateScript
Represents a single CREATE TABLE operation to be applied to a
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CreateTable
public CreateTable(Schema schema,
String tableName)
CreateTable
public CreateTable(String schemaName,
String tableName)
withColumn
public ColumnBuilder<CreateTableColumnBuilder> withColumn(String name)
- Adds a column to the current builder
- Parameters:
name -
- Returns:
run
public void run(UpdateCallback callback)
- Description copied from interface:
UpdateScript
- Invoked by MetaModel when the update script should be run. User should
implement this method and invoke update operations on the
UpdateCallback.
- Specified by:
run in interface UpdateScript- Specified by:
run in interface Action<UpdateCallback>
Copyright © 2007-2013. All Rights Reserved.