538539540541542543544545546547548
int affected = db.executeSQL(upd.getUpdate(), upd.getParamValues(), conn); if (affected <= 0) { // Error if (affected == 0) { // Record not found throw new RecordUpdateFailedException(this, keys); } // Rollback db.rollback(conn); return; }