hi brett

final Query query = 
session.getWorkspace().getQueryManager().createQuery(queryString, Query.XPATH);
((QueryImpl) query).setLimit(limit);
((QueryImpl) query).setOffset(offset);
final QueryResult queryResult = query.execute();
final long totalSize = ((QueryResultImpl) queryResult).getTotalSize();

cu

On Fri 28. March 2008 20:27:25 Conoly, Brett wrote:
> Hey all,
>
> I'm currently trying to implement a method that will return a
> NodeIterator from the repository based on an SQL query that I pass it.
> The only problem right now is that I can't seem to find the equivalent
> of the SQL LIMIT function.  Does anyone happen to know if there is
> equivalent functionality or an alternative to do what I'm looking for?
>
> Thanks in advance,
>
> Brett

-- 
Martin Zdila 
CTO

M-Way Solutions Slovakia s.r.o.
Letna 27, 040 01 Kosice
Slovakia

tel:+421-908-363-848
mailto:[EMAIL PROTECTED]
http://www.mwaysolutions.com
xmpp:[EMAIL PROTECTED] (Jabber)
skype:m.zdila

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to