public int executeUpdate(String sql,List<Object> params) throws SQLException {
  Connection connection=createConnection();
  PreparedStatement statement=null;
  try {
    statement=getPreparedStatement(connection,sql,params);
    this.updateCount=statement.executeUpdate();
    return this.updateCount;
  }
 catch (  SQLException e) {
    LOG.warning("Failed to execute: " + sql + " because: "+ e.getMessage());
    throw e;
  }
 finally {
    closeResources(connection,statement);
  }
}

public int executeUpdate ( String sql , List < Object > params ) throws SQLException { Connection connection = createConnection ( ) ; PreparedStatement statement = null ; try { statement = getPreparedStatement ( connection , sql , params ) ; this . updateCount = statement . executeUpdate ( ) ; return this . updateCount ; } catch ( SQLException e ) { LOG . warning ( "Failed to execute: " + sql + " because: " + e . getMessage ( ) ) ; throw e ; } finally { closeResources ( connection , statement ) ; } }
executes the given sql update with parameters . < p > this method supports named and named ordinal parameters . see the class javadoc for more details . < p > resource handling is performed automatically where appropriate .
