protected void delete(Object[] row) throws SQLException {
  String key=getKey(row);
  int hash=key.hashCode();
  prepSelectRow.setInt(1,hash);
  prepSelectRow.setInt(2,index.id);
  prepSelectRow.setString(3,key);
  ResultSet rs=prepSelectRow.executeQuery();
  if (rs.next()) {
    int rowId=rs.getInt(1);
    prepDeleteMap.setInt(1,rowId);
    int[] wordIds=getWordIds(row);
    for (    int id : wordIds) {
      prepDeleteMap.setInt(2,id);
      prepDeleteMap.executeUpdate();
    }
    prepDeleteRow.setInt(1,hash);
    prepDeleteRow.setInt(2,index.id);
    prepDeleteRow.setString(3,key);
    prepDeleteRow.executeUpdate();
  }
}

protected void delete ( Object [ ] row ) throws SQLException { String key = getKey ( row ) ; int hash = key . hashCode ( ) ; prepSelectRow . setInt ( 1 , hash ) ; prepSelectRow . setInt ( 2 , index . id ) ; prepSelectRow . setString ( 3 , key ) ; ResultSet rs = prepSelectRow . executeQuery ( ) ; if ( rs . next ( ) ) { int rowId = rs . getInt ( 1 ) ; prepDeleteMap . setInt ( 1 , rowId ) ; int [ ] wordIds = getWordIds ( row ) ; for ( int id : wordIds ) { prepDeleteMap . setInt ( 2 , id ) ; prepDeleteMap . executeUpdate ( ) ; } prepDeleteRow . setInt ( 1 , hash ) ; prepDeleteRow . setInt ( 2 , index . id ) ; prepDeleteRow . setString ( 3 , key ) ; prepDeleteRow . executeUpdate ( ) ; } }
delete a row from the index .
