I try, actually it will return the full search size, not only the segment specify in the start and end index.
> -----Original Message----- > From: Eddie Bush [mailto:[EMAIL PROTECTED]] > Sent: 14 October 2002 22:42 > To: OJB Users List > Subject: Re: getCount(), setStartAtIndex() and setEndAtIndex() > > > Thanks for the tip! That would only represent the segment retrieved > though, right? So if I specified the start/end index I'd just get a > result of "pageSize", right? (pageSize being the size of the result > materialized). > > J. Russell Smyth wrote: > > >One thing to note - you do not need to do the getCount(), then the > >queries. After you use a query in > > > >PersistenceBroker.getCollectionByQuery(Query q) > > > >the query object is populated with the size of the complete > result(the > >count) which can be retrived by > > > >Query.fullSize() > > > >Russell > > > > -- > Eddie Bush > > > > > -- > To unsubscribe, e-mail: > <mailto:ojb-user-> [EMAIL PROTECTED]> > For > additional commands, > e-mail: <mailto:[EMAIL PROTECTED]> > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
