Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

scrollable resultset

 
krishna prasad gunasekaran
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have set ResultSet.TYPE_SCROLL_SENSITIVE in connection's prepareCall method along with the query. i got the resultset using callable statement's getObject() method. the resultset is 'forward only'. why?
 
S J Martin
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is this Oracle ?
Are you using JDBC 2.0 gfunctionality ?
 
Remko Strating
Ranch Hand
Posts: 893
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could use the method DatabaseMetaData.supportsResultSetType for making sure that your JDBC supports your resultset ResultSet.TYPE_SCROLL_SENSITIVE

The following link has an example for using the method

JDBC 2.0 Fundamentals
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!