Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cursormoving without jdbc2.0

 
Jesper Ottosson
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to move the cursor in a resultset to the first row, but i don't have access to jdbc2.0 methods... any ideas?
 
Carl Trusiak
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can only traverse the ResultSet in one direction in Java 1.X.
If you wish to be able to return to the start, you need to go through the ResultSet and store each result in a container or array. Then you can navigate to whichever result you need.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic