+
+ int executeUpdate(Connection con, String sql) throws SQLException
+ {
+ try (PreparedStatement ps = con.prepareStatement(sql))
+ {
+ return ps.executeUpdate();
+ }
+ catch (SQLException exc) {
+ throw new SQLException("Failed to executeUpdate: " + sql, exc);
+ }
+ }