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

Resultset

 
aakash bhatt
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is resultset serializable
 
Joe Ess
Bartender
Posts: 9339
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you look at the Java API documentation for java.sql.ResultSet, you will see that it does not implement java.lang.Serializable, and is therefore not serializable.
 
aakash bhatt
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I had retrieved the value in a resultset, which cannot be serialized but if i need to serialize the resultset value then in that case should i had to fetch each individual value and then serialize
Regards,
aakash
 
Ali Gohar
Ranch Hand
Posts: 572
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Fetch the records and then store them in a Vector Object. You can serialize the Vector Object. Because it is serializable.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic