code: public static List<QueryParameters> convertResultSet(ResultSet rs) throws SQLException {
          List<QueryParameters> result = new ArrayList<QueryParameters>();
          String columnName = null;
  
          while (rs.next() == true) {
              QueryParameters params = new QueryParameters();
              ResultSetMetaData rsmd = rs.getMetaData();
              int cols = rsmd.getColumnCount();
  
              for (int i = 1; i <= cols; i++) {
  
                  columnName = rsmd.getColumnLabel(i);
                  if (null == columnName || 0 == columnName.length()) {
                      columnName = rsmd.getColumnName(i);
                  }
  
                  params.set(columnName, rs.getObject(i));
                  params.updatePosition(columnName, i - 1);
              }
  
              result.add(params);
          }
  
          return result;
      }
docs: Converts java.sql.ResultSet into List of QueryParameters.
  Used for caching purposes to allow ResultSet to be closed and disposed.
  
  @param rs ResultSet values from which would be read
  @return List of QueryParameters (one for each row)
  @throws SQLException propagates SQLException sent from ResultSet