public class DeleteAndInsertBuilder extends AbstractRowUpdationBuilder
RowUpdationBuilder interface, which
simply uses a combined delete+insert strategy for performing updates. Note
that this implementation is not desirable performance-wise in many cases, but
does provide a functional equivalent to a "real" update.| Constructor and Description |
|---|
DeleteAndInsertBuilder(AbstractUpdateCallback updateCallback,
Table table) |
| Modifier and Type | Method and Description |
|---|---|
void |
execute()
Commits the row updation operation.
|
protected List<Row> |
getRowsToUpdate() |
getTable, getWhereItems, toSql, toString, where, where, where, wheregetColumns, getExplicitNulls, getStyles, getValues, isSet, toRow, value, value, value, value, value, valuepublic DeleteAndInsertBuilder(AbstractUpdateCallback updateCallback, Table table)
public void execute()
throws MetaModelException
RowUpdationBuilderDataContext.MetaModelException - if the operation was rejectedCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.