code: protected void compute(java.sql.ResultSet rs) throws SQLException {
          ResultSetMetaData rsmd;
          int numCols;
          // Zero element will be null always
          // This is to avoid any indexing problems.. 
  
          rsmd = rs.getMetaData();
          numCols = rsmd.getColumnCount();
  
          // so that we do not have to manage indexes
          // remember to subtract 1 from size of vector
          // vector indexes are valid from 1 to size-1
          while (rs.next()) {
              // process row
              QueryRow qr = new QueryRow(numCols);
              for (int i = 1; i <= numCols; i++) {
                  String colVal = rs.getString(i);
                  String colName = rsmd.getColumnLabel(i);
                  qr.put(colName, colVal);
  
              } // for
              // put Hashtable reference into Vector
              rows.addElement(qr);
          } // while
          rows.trimToSize();
          //if (!isEmpty())
          //  {
          //  this.currRow=0;
          //  setCurrRowRef((QueryRow)rows.elementAt(this.currRow));
          //  }
      }
docs: This method was created in VisualAge.
  @param rs java.sql.ResultSet