The moose likes JDBC and Relational Databases and the fly likes Resultset Paging Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Resultset Paging " Watch "Resultset Paging " New topic

Resultset Paging

ramdas pradeep kumar
Ranch Hand

Joined: Aug 27, 2003
Posts: 36
Hai friends,
How paging can be implemented in a resultset. I want to list the records by a page size of 10. Is it possible with Java.
Sanjeev Kaushik
Ranch Hand

Joined: Aug 01, 2002
Posts: 105
You can try ScrollableResultset
Here are few links which can help you
Another way could be using Statement objects setMaxRows(no. of records you need)
You can use the boundary conditions in the sql query as per your DB and you will that many no of records only.
Hope it can guide you!
Sanjeev Kaushik

Sanjeev Kaushik
I agree. Here's the link:
subject: Resultset Paging
It's not a secret anymore!