public int executeUpdate(String sql) throws GenericDataSourceException {
  Statement stmt=null;
  try {
    stmt=_connection.createStatement();
    return stmt.executeUpdate(sql);
  }
 catch (  SQLException sqle) {
    throw new GenericDataSourceException("SQL Exception while executing the following:" + _sql,sqle);
  }
 finally {
    if (stmt != null) {
      try {
        stmt.close();
      }
 catch (      SQLException sqle) {
        Debug.logWarning("Unable to close 'statement': " + sqle.getMessage(),module);
      }
    }
  }
}

public int executeUpdate ( String sql ) throws GenericDataSourceException { Statement stmt = null ; try { stmt = _connection . createStatement ( ) ; return stmt . executeUpdate ( sql ) ; } catch ( SQLException sqle ) { throw new GenericDataSourceException ( "SQL Exception while executing the following:" + _sql , sqle ) ; } finally { if ( stmt != null ) { try { stmt . close ( ) ; } catch ( SQLException sqle ) { Debug . logWarning ( "Unable to close 'statement': " + sqle . getMessage ( ) , module ) ; } } } }
execute update based on the sql statement given
