• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Scrolling through a ResultSet

 
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm trying to create a ResultSet that I can scroll through...
I know by default ResultSets are set up to be read Forward_Only (so I could only use rs.next()), but I'd like to be able to use rs.previous(), and rs.first().
I've tried setting up a Statement like this:

But I get some AbstractMethodError and a servlet exception: oracle.jdbc.driver.OracleConnection.createStatement...
... which is not very helpful. I don't understand what I'm doing wrong.
Has anybody out there ever successfully created a scrollable ResultSet? If so... could you help me out?
Thanks a bunch!
 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have implemented a scrollable ResultSet. Your code looks good. You may want to make sure the driver you are using is JDBC 2.0 compliant. Scrollable ResultSets were not introduced until JDBC 2.0. I noticed you are using Oracle drivers. If you use the classes12.zip (or newer versions if available) file from Oracle for your drivers, you should be okay.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic