org.eobjects.metamodel.update
Interface RowUpdationBuilder

All Superinterfaces:
RowBuilder<RowUpdationBuilder>, WhereClauseBuilder<RowUpdationBuilder>
All Known Implementing Classes:
AbstractRowUpdationBuilder, DeleteAndInsertBuilder

public interface RowUpdationBuilder
extends RowBuilder<RowUpdationBuilder>, WhereClauseBuilder<RowUpdationBuilder>

Builder object for row update on a Table.

Author:
Kasper Sørensen

Method Summary
 void execute()
          Commits the row updation operation.
 Table getTable()
          Gets the table that this update pertains to.
 String toSql()
          Gets a SQL representation of this update operation.
 
Methods inherited from interface org.eobjects.metamodel.data.RowBuilder
isSet, toRow, value, value, value, value, value, value
 
Methods inherited from interface org.eobjects.metamodel.data.WhereClauseBuilder
where, where, where, where
 

Method Detail

getTable

Table getTable()
Gets the table that this update pertains to.

Specified by:
getTable in interface RowBuilder<RowUpdationBuilder>
Returns:
the table that this update pertains to.

toSql

String toSql()
Gets a SQL representation of this update operation. Note that the generated SQL is dialect agnostic, so it is not accurately the same as what will be passed to a potential backing database.

Returns:
a SQL representation of this update operation.

execute

void execute()
             throws MetaModelException
Commits the row updation operation. This operation will overwrite rows in the DataContext.

Throws:
MetaModelException - if the operation was rejected


Copyright © 2007-2013. All Rights Reserved.