public void execute(String sql) throws DatabaseException {
  Statement stmt=null;
  try {
    stmt=connection.createStatement();
    stmt.execute(sql);
  }
 catch (  SQLException e) {
    throw (new DatabaseException(e));
  }
 finally {
    if (stmt != null) {
      try {
        stmt.close();
      }
 catch (      SQLException e) {
      }
    }
  }
}

public void execute ( String sql ) throws DatabaseException { Statement stmt = null ; try { stmt = connection . createStatement ( ) ; stmt . execute ( sql ) ; } catch ( SQLException e ) { throw ( new DatabaseException ( e ) ) ; } finally { if ( stmt != null ) { try { stmt . close ( ) ; } catch ( SQLException e ) { } } } }
execute a insert , delete , update , or other statement that does not return a resultset .
