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

state of ResultSet

 
tushar jayawant
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi to All
How to check the state of ResultSet that it is open or close
Thank's in Advance
Tushar
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35279
384
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There isn't a method call that does this. You could try to perform an operation, like next(), and see if it throws a SQL exception.
Also, you could check if the connection is closed. If it is, the result set is definitely closed.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic