• 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
Sheriff
Posts: 36031
432
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.
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
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!