setVersionColumnFlagInProperty(row);
sh = sqlGenerator.generateUpdateQuery(tableName, row);
result = executeUpdate(sh);
}
if (versionColumn != null && result == 0) {
throw new OptimisticLockException(
"Someone else changed the row that was being updated.",
row.getId());
}
return result;
}