protected void insert(Object[] row) throws SQLException {
  String key=getKey(row);
  int hash=key.hashCode();
  prepInsertRow.setInt(1,hash);
  prepInsertRow.setInt(2,index.id);
  prepInsertRow.setString(3,key);
  prepInsertRow.execute();
  ResultSet rs=prepInsertRow.getGeneratedKeys();
  rs.next();
  int rowId=rs.getInt(1);
  prepInsertMap.setInt(1,rowId);
  int[] wordIds=getWordIds(row);
  for (  int id : wordIds) {
    prepInsertMap.setInt(2,id);
    prepInsertMap.execute();
  }
}

protected void insert ( Object [ ] row ) throws SQLException { String key = getKey ( row ) ; int hash = key . hashCode ( ) ; prepInsertRow . setInt ( 1 , hash ) ; prepInsertRow . setInt ( 2 , index . id ) ; prepInsertRow . setString ( 3 , key ) ; prepInsertRow . execute ( ) ; ResultSet rs = prepInsertRow . getGeneratedKeys ( ) ; rs . next ( ) ; int rowId = rs . getInt ( 1 ) ; prepInsertMap . setInt ( 1 , rowId ) ; int [ ] wordIds = getWordIds ( row ) ; for ( int id : wordIds ) { prepInsertMap . setInt ( 2 , id ) ; prepInsertMap . execute ( ) ; } }
add a row to the index .
