org.eobjects.metamodel.insert
Class InsertInto
java.lang.Object
org.eobjects.metamodel.data.AbstractRowBuilder<InsertInto>
org.eobjects.metamodel.insert.InsertInto
- All Implemented Interfaces:
- RowBuilder<InsertInto>, UpdateScript, Action<UpdateCallback>
public final class InsertInto
- extends AbstractRowBuilder<InsertInto>
- implements UpdateScript, RowBuilder<InsertInto>
Represents a single INSERT INTO operation to be applied to a
UpdateableDataContext. Instead of providing a custom implementation
of the UpdateScript interface, one can use this pre-built
single-record insertion implementation. Some DataContexts may even
optimize specifically based on the knowledge that there will only be a single
record inserted.
|
Method Summary |
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. |
| Methods inherited from class org.eobjects.metamodel.data.AbstractRowBuilder |
getColumns, getExplicitNulls, getStyles, getValues, isSet, toRow, value, value, value, value, value, value |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InsertInto
public InsertInto(Table table)
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>
getTable
public Table getTable()
- Description copied from interface:
RowBuilder
- Gets the table that this row builder pertains to.
- Specified by:
getTable in interface RowBuilder<InsertInto>
- Returns:
- the table that this row builder pertains to.
Copyright © 2007-2013. All Rights Reserved.