Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Resultset Paging

 
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can try ScrollableResultset
Here are few links which can help you
http://otn.oracle.com/sample_code/tech/java/sqlj_jdbc/files/jdbc20/ScrollableResSetSample/Readme.html
http://otn.oracle.com/sample_code/tech/java/codesnippet/jdbc/rs/CountResult.html
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
 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic