|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eobjects.metamodel.delete.DeleteFrom
public final class DeleteFrom
Represents a single DELETE FROM operation to be applied to a
UpdateableDataContext. Instead of providing a custom implementation
of the UpdateScript interface, one can use this pre-built delete from
implementation. Some DataContexts may even optimize specifically
based on the knowledge that there will only be a single delete from statement
executed.
| Constructor Summary | |
|---|---|
DeleteFrom(Table table)
|
|
| Method Summary | |
|---|---|
void |
run(UpdateCallback callback)
Invoked by MetaModel when the update script should be run. |
FilterBuilder<DeleteFrom> |
where(Column column)
Defines a where item to set as a criteria |
DeleteFrom |
where(FilterItem... filterItems)
Applies where items to set criteria |
DeleteFrom |
where(Iterable<FilterItem> filterItems)
Applies where items to set criteria |
FilterBuilder<DeleteFrom> |
where(String columnName)
Defines a where item to set as a criteria |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DeleteFrom(Table table)
| Method Detail |
|---|
public void run(UpdateCallback callback)
UpdateScriptUpdateCallback.
run in interface UpdateScriptrun in interface Action<UpdateCallback>public FilterBuilder<DeleteFrom> where(Column column)
WhereClauseBuilder
where in interface WhereClauseBuilder<DeleteFrom>column - a column to apply a criteria for
public FilterBuilder<DeleteFrom> where(String columnName)
WhereClauseBuilder
where in interface WhereClauseBuilder<DeleteFrom>columnName - the name of the colum to which the criteria will be applied
public DeleteFrom where(FilterItem... filterItems)
WhereClauseBuilder
where in interface WhereClauseBuilder<DeleteFrom>filterItems - the where items to set
public DeleteFrom where(Iterable<FilterItem> filterItems)
WhereClauseBuilder
where in interface WhereClauseBuilder<DeleteFrom>filterItems - the where items to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||