Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

state of ResultSet  RSS feed

 
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
Sheriff
Posts: 37261
519
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
Boost this thread!