Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Resultset" Watch "Resultset" New topic
Author

Resultset

aakash bhatt
Ranch Hand

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

Joined: Oct 29, 2001
Posts: 8839
    
    7

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.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[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
Regards,
aakash
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: http://aspose.com/file-tools
 
subject: Resultset
 
Similar Threads
handle empty recordset
Problem in getting multiple resultsets from Oracle Stored Procedure
how can show the data in database to jtable??
Scrollable ResultSet
JSP & JDBC