• 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic