jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Klimetschek <aklim...@day.com>
Subject Re: NodeIterator.getSize() returns -1 for query with order by clause
Date Mon, 26 Apr 2010 17:59:03 GMT
On Mon, Apr 26, 2010 at 15:14, Gadbury <gadbury@googlemail.com> wrote:
> No I haven't tried that.  Does that always work for XPath queries and only
> for XPath queries?  What about SQL2 queries?

The order by trick should work with both xpath and jcr-sql (from the
JCR 1.0 spec), since they share the same query implementation. I guess
it also works with jcr-sql2 / jqom from the JCR 2.0 spec, but I am not
sure.

Regards,
Alex

-- 
Alexander Klimetschek
alexander.klimetschek@day.com

Mime
View raw message