i = queryRunner.update(conn, sql, paramList.toArray());
conn.commit();
return i;
} catch (SQLException se) {
conn.rollback();
throw new ControllerException(se);
}
} catch (SQLException se) {
log.warning("GenericController SQLException: " + se.getMessage());
throw new ControllerException(se);
} finally {
try {
DbUtils.close(conn);
} catch (SQLException se) {
log.warning(
"GenericController SQLException: " + se.getMessage());
throw new ControllerException(se);
}
}
}