public abstract class AbstractTableCreationBuilder<U extends UpdateCallback> extends Object implements TableCreationBuilder
TableCreationBuilder implementation, provided as convenience
for TableCreatable implementations. Handles all the building
operations, but not the commit operation.| Constructor and Description |
|---|
AbstractTableCreationBuilder(U updateCallback,
Schema schema,
String name) |
| Modifier and Type | Method and Description |
|---|---|
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
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitexecuteprotected U getUpdateCallback()
protected Schema getSchema()
protected MutableTable getTable()
public Table toTable()
TableCreationBuildertoTable 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 prototypepublic ColumnCreationBuilder withColumn(String name)
TableCreationBuilderwithColumn in interface TableCreationBuilderpublic String toSql()
TableCreationBuildertoSql in interface TableCreationBuilderCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.