|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eobjects.metamodel.data.AbstractRowBuilder<InsertInto>
org.eobjects.metamodel.update.Update
public final class Update
Represents a single UPDATE operation to be applied to a
UpdateableDataContext. Instead of providing a custom implementation
of the UpdateScript interface, one can use this pre-built update
implementation. Some DataContexts may even optimize specifically
based on the knowledge that there will only be a single update statement
executed.
| Constructor Summary | |
|---|---|
Update(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. |
FilterBuilder<Update> |
where(Column column)
Defines a where item to set as a criteria |
Update |
where(FilterItem... filterItems)
Applies where items to set criteria |
Update |
where(Iterable<FilterItem> filterItems)
Applies where items to set criteria |
FilterBuilder<Update> |
where(String columnName)
Defines a where item to set as a criteria |
| 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 |
| Constructor Detail |
|---|
public Update(Table table)
| Method Detail |
|---|
public Table getTable()
RowBuilder
getTable in interface RowBuilder<InsertInto>public void run(UpdateCallback callback)
UpdateScriptUpdateCallback.
run in interface UpdateScriptrun in interface Action<UpdateCallback>public FilterBuilder<Update> where(Column column)
WhereClauseBuilder
where in interface WhereClauseBuilder<Update>column - a column to apply a criteria for
public FilterBuilder<Update> where(String columnName)
WhereClauseBuilder
where in interface WhereClauseBuilder<Update>columnName - the name of the colum to which the criteria will be applied
public Update where(FilterItem... filterItems)
WhereClauseBuilder
where in interface WhereClauseBuilder<Update>filterItems - the where items to set
public Update where(Iterable<FilterItem> filterItems)
WhereClauseBuilder
where in interface WhereClauseBuilder<Update>filterItems - the where items to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||