org.eobjects.metamodel.delete
Interface RowDeletionBuilder

All Superinterfaces:
WhereClauseBuilder<RowDeletionBuilder>
All Known Implementing Classes:
AbstractRowDeletionBuilder

public interface RowDeletionBuilder
extends WhereClauseBuilder<RowDeletionBuilder>

Builder object for row deletions in a Table.

Author:
Kasper Sørensen

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

Method Detail

getTable

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

Returns:
the table that this delete statement pertains to.

toSql

String toSql()
Gets a SQL representation of this delete 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 delete operation.

execute

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

Throws:
MetaModelException - if the operation was rejected


Copyright © 2007-2013. All Rights Reserved.