org.eobjects.metamodel
Interface UpdateCallback

All Superinterfaces:
RowDeletable, RowInsertable, RowUpdateable, TableCreatable, TableDroppable
All Known Implementing Classes:
AbstractUpdateCallback

public interface UpdateCallback
extends TableCreatable, TableDroppable, RowInsertable, RowUpdateable, RowDeletable

An UpdateCallback is used by an UpdateScript to perform updates on a DataContext. Multiple updates (eg. insertion of several rows or creation of multiple tables) can (and should) be performed with a single UpdateCallback. This pattern guarantees that connections and/or file handles are handled correctly, surrounding the UpdateScript that is being executed.

Author:
Kasper Sørensen

Method Summary
 DataContext getDataContext()
          Gets the DataContext on which the update script is being executed.
 
Methods inherited from interface org.eobjects.metamodel.create.TableCreatable
createTable, createTable, isCreateTableSupported
 
Methods inherited from interface org.eobjects.metamodel.drop.TableDroppable
dropTable, dropTable, dropTable, dropTable, isDropTableSupported
 
Methods inherited from interface org.eobjects.metamodel.insert.RowInsertable
insertInto, insertInto, insertInto, isInsertSupported
 
Methods inherited from interface org.eobjects.metamodel.update.RowUpdateable
isUpdateSupported, update, update, update
 
Methods inherited from interface org.eobjects.metamodel.delete.RowDeletable
deleteFrom, deleteFrom, deleteFrom, isDeleteSupported
 

Method Detail

getDataContext

DataContext getDataContext()
Gets the DataContext on which the update script is being executed.

Returns:
the DataContext on which the update script is being executed.


Copyright © 2007-2013. All Rights Reserved.