replace<Row extends Object, RS extends GeneratedTable<Row, RS> > method
BatchedStatement
replace<Row extends Object, RS extends GeneratedTable<Row, RS> >(
- GeneratedTable<
Row, RS> table, - Insertable<
Row> row
Replaces the row from the table with the updated values. The row in
the table with the same primary key will be replaced.
See also:
- UpdateStatement.replace, which is what would be used outside of a Batch.
Implementation
BatchedStatement replace<
Row extends Object,
RS extends GeneratedTable<Row, RS>
>(GeneratedTable<Row, RS> table, Insertable<Row> row) {
return addStatement(UpdateStatement(database, table)..prepareReplace(row));
}