org.eobjects.metamodel.insert
Class InsertInto

java.lang.Object
  extended by org.eobjects.metamodel.data.AbstractRowBuilder<InsertInto>
      extended by 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.


Constructor Summary
InsertInto(Table table)
           
 
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
 
Methods inherited from interface org.eobjects.metamodel.data.RowBuilder
isSet, toRow, value, value, value, value, value, value
 

Constructor Detail

InsertInto

public InsertInto(Table table)
Method Detail

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.