RowDef rowDefNewRow = newRow.rowType().table().rowDef();
if (rowDef.getRowDefId() != rowDefNewRow.getRowDefId()) {
throw new IllegalArgumentException(String.format("%s != %s", rowDef, rowDefNewRow));
}
RowData oldRowData = rowData(rowDef, oldRow, rowDataCreator());
try {
// For Update row, the new row (value being inserted) does not
// need the default value (including identity set)
RowData newRowData = rowData(rowDefNewRow, newRow, rowDataCreator());
store.updateRow(getSession(), rowDef, oldRowData, rowDefNewRow, newRowData, null);
} catch (InvalidOperationException e) {
rollbackIfNeeded(e);
throw e;
}