code: public int executeUpdate(String sql) throws SQLException {
          Connection connection = createConnection();
          Statement statement = null;
          try {
              statement = getStatement(connection, sql);
              this.updateCount = statement.executeUpdate(sql);
              return this.updateCount;
          } catch (SQLException e) {
              LOG.warning("Failed to execute: " + sql + " because: " + e.getMessage());
              throw e;
          } finally {
              closeResources(connection, statement);
          }
      }
docs: Executes the given SQL update.
  <p>
  Resource handling is performed automatically where appropriate.
  
  @param sql the SQL to execute
  @return the number of rows updated or 0 for SQL statements that return nothing
  @throws SQLException if a database access error occurs