public abstract class AbstractRowInsertionBuilder<U extends UpdateCallback> extends AbstractRowBuilder<RowInsertionBuilder> implements RowInsertionBuilder
RowInsertionBuilder
interface,
provided as a convenience to RowInsertable
implementations. Handles
all the building operations, but not the commit operation.Constructor and Description |
---|
AbstractRowInsertionBuilder(U updateCallback,
Table table) |
Modifier and Type | Method and Description |
---|---|
Table |
getTable()
Gets the table that this insert pertains to.
|
protected U |
getUpdateCallback() |
RowInsertionBuilder |
like(Row row)
Sets all values like the provided row (for easy duplication of a row).
|
String |
toSql()
Gets a SQL representation of this insert operation.
|
String |
toString() |
getColumns, getExplicitNulls, getStyles, getValues, isSet, toRow, value, value, value, value, value, value
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
execute
public Table getTable()
RowInsertionBuilder
getTable
in interface RowBuilder<RowInsertionBuilder>
getTable
in interface RowInsertionBuilder
protected U getUpdateCallback()
public RowInsertionBuilder like(Row row)
RowInsertionBuilder
like
in interface RowInsertionBuilder
row
- the row from which to take valuespublic String toSql()
RowInsertionBuilder
toSql
in interface RowInsertionBuilder
Copyright © 2007–2015 The Apache Software Foundation. All rights reserved.