my dog learned polymorphism
The moose likes Beginning Java and the fly likes Resultset Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Resultset" Watch "Resultset" New topic


aakash bhatt
Ranch Hand

Joined: Jan 09, 2003
Posts: 182
Is resultset serializable
Joe Ess

Joined: Oct 29, 2001
Posts: 9191

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.

[How To Ask Questions On JavaRanch]
aakash bhatt
Ranch Hand

Joined: Jan 09, 2003
Posts: 182
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
Ali Gohar
Ranch Hand

Joined: Mar 18, 2004
Posts: 572
Fetch the records and then store them in a Vector Object. You can serialize the Vector Object. Because it is serializable.
I agree. Here's the link:
subject: Resultset
It's not a secret anymore!