jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jukka Zitting <jzitt...@adobe.com>
Subject Re: AW: Rather easy SQL2-query?
Date Fri, 11 Feb 2011 13:29:52 GMT
Hi,

On 02/11/2011 02:07 PM, Jukka Zitting wrote:
> That's most likely because you're using the QueryResult.getNodes()
> method with no argument. With a join query you need to specify the
> selector you're interested in as a parameter to the call. In this case
> it would be:
>
>       NodeIterator nodes = result.getNodes("f");

Sorry that's not correct. You can only access the per-selector nodes 
through the row view of the query result, like this:

     RowIterator rows = result.getRows();
     while (rows.hasNext()) {
         Row row = rows.nextRow();
         Node node = row.getNode("f");
         ...
     }

-- 
Jukka Zitting

Mime
View raw message