You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Matthew Baird <Ma...@motiva.com> on 2003/07/03 01:32:30 UTC
RE: using setStartAtIndex and setEndAtIndex for ReportQuery
Sorry I let this slip by.
I don't think that the startat/endat has been implemented for report queries yet.
I will take a look at it.
-----Original Message-----
From: Chiah Tong Kiat [mailto:ctk@silicomp.com.sg]
Sent: Tuesday, April 29, 2003 4:02 AM
To: OJB Users List
Subject: using setStartAtIndex and setEndAtIndex for ReportQuery
Hi
I'm trying to use start and end index for at the reportquery. However, even though I'm setting the start and end index, ojb is return me the full resultset.
ReportQueryByCriteria query = QueryFactory.newReportQuery(someclass.class, crit);
query.setColumns(array of columns);
query.setStartAtIndex(startIndex);
query.setEndAtIndex(stopIndex);
Iterator iter = broker.getReportQueryIteratorByQuery(query);
while (iter.hasNext())
{
// print results
}
however the above code is not working is not working. Is there anyway of using reportquery with start and end index?
TIA
kiat
RE: using setStartAtIndex and setEndAtIndex for ReportQuery
Posted by Chiah Tong Kiat <ct...@silicomp.com.sg>.
Thanks!!!
Currently I'm written a hack solution which exposes the OJBIterator out. It's a ugle
solution. If there is a better way of doing so ?
regards
Tong Kiat
-----Original Message-----
From: "Matthew Baird" <Ma...@motiva.com>
To: "OJB Users List" <oj...@db.apache.org>
Date: Wed, 2 Jul 2003 16:32:30 -0700
Subject: RE: using setStartAtIndex and setEndAtIndex for ReportQuery
> Sorry I let this slip by.
>
> I don't think that the startat/endat has been implemented for report
> queries yet.
>
> I will take a look at it.
>
> -----Original Message-----
> From: Chiah Tong Kiat [mailto:ctk@silicomp.com.sg]
> Sent: Tuesday, April 29, 2003 4:02 AM
> To: OJB Users List
> Subject: using setStartAtIndex and setEndAtIndex for ReportQuery
>
>
>
> Hi
>
>
>
> I'm trying to use start and end index for at the reportquery. However,
> even though I'm setting the start and end index, ojb is return me the
> full resultset.
>
>
>
> ReportQueryByCriteria query =
> QueryFactory.newReportQuery(someclass.class, crit);
>
> query.setColumns(array of columns);
>
> query.setStartAtIndex(startIndex);
>
> query.setEndAtIndex(stopIndex);
>
> Iterator iter = broker.getReportQueryIteratorByQuery(query);
>
> while (iter.hasNext())
>
> {
>
> // print results
>
> }
>
>
>
> however the above code is not working is not working. Is there anyway
> of using reportquery with start and end index?
>
>
>
>
>
> TIA
>
> kiat
>
>
>
>