public final class InsertInto extends AbstractRowBuilder<InsertInto> implements UpdateScript, RowBuilder<InsertInto>
UpdateableDataContext
. Instead of providing a custom implementation
of the UpdateScript
interface, one can use this pre-built
single-record insertion implementation. Some DataContext
s may even
optimize specifically based on the knowledge that there will only be a single
record inserted.Constructor and Description |
---|
InsertInto(Table table) |
Modifier and Type | Method and Description |
---|---|
Table |
getTable()
Gets the table that this row builder pertains to.
|
void |
run(UpdateCallback callback)
Invoked by MetaModel when the update script should be run.
|
getColumns, getExplicitNulls, getStyles, getValues, isSet, toRow, value, value, value, value, value, value
public InsertInto(Table table)
public void run(UpdateCallback callback)
UpdateScript
UpdateCallback
.run
in interface UpdateScript
run
in interface Action<UpdateCallback>
public Table getTable()
RowBuilder
getTable
in interface RowBuilder<InsertInto>
Copyright © 2007–2015 The Apache Software Foundation. All rights reserved.