This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JDBC and the fly likes Serializing ResutSet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Serializing ResutSet" Watch "Serializing ResutSet" New topic

Serializing ResutSet

Xavier George
Ranch Hand

Joined: Jul 29, 2005
Posts: 39
I am badly in need of Serializing Resultset object into secondary storage. So that I can read it later.
Any hint how to do???
[ April 26, 2007: Message edited by: Bear Bibeault ]
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60752

Copy the data from the resultset into serializable collection.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Jan Cumps

Joined: Dec 20, 2006
Posts: 2491

Can you use a CachedRowSet?
CachedRowSet object is a container for rows of data that caches its rows in memory, which makes it possible to operate without always being connected to its data source. Further, it is a JavaBeansTM component and is scrollable, updatable, and serializable.
Regards, Jan

OCUP UML fundamental and ITIL foundation
youtube channel
subject: Serializing ResutSet
Similar Threads
Storing objects in cookies
Static - Serialization
about serilize/deserilize complex objects
About I/o Files
getting an instance from an application running on different JVM