-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: scrolling through a table with a multi - field index
PostPosted: Thu Sep 02, 2004 10:32 am 
Beginner
Beginner

Joined: Mon Dec 15, 2003 11:34 am
Posts: 22
Hi,
Is there a way to scroll thru a list of items with a multi-part index. I cannot use a cursor because I am executing in a stateless session bean and I will be returning to the user parts of the list as they scroll through it.

Is there a straight forward way to do this. I am using an index consisting of multiple fields, so keeping track of the last item the user saw and re-issueing the select statement will not work, because lower order fields might have greater values than higher order fields.

Conceptually this is simple...scrolling through a list, but since I cannot keep the cursor open in between screen displays, I do not see a clean way of doing this

thanks,
Adam


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 02, 2004 11:12 am 
Beginner
Beginner

Joined: Mon Dec 15, 2003 11:34 am
Posts: 22
let me add to my siduation , because the normal SetFirstRow/SetMaxResults cannot apply. On a single web page there might be multiple list the user is paging through and thus I cannot keep the session open to achieve my desired scrolling, because there isn't way to associate an open session with a particular open cursor ( ScrollableResults ).
Also, there might be maintenance going on and the data might get stale, so doing the 'normal' SetFirstRow/SetMaxResults doesn't apply

thanks...


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.