This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft 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 Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Serializing ResutSet" Watch "Serializing ResutSet" New topic
Author

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
Marshal

Joined: Jan 10, 2002
Posts: 60077
    
  65

Copy the data from the resultset into serializable collection.


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

Joined: Dec 20, 2006
Posts: 2477
    
    7

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
 
Consider Paul's rocket mass heater.
 
subject: Serializing ResutSet
 
Similar Threads
Static - Serialization
About I/o Files
getting an instance from an application running on different JVM
about serilize/deserilize complex objects
Storing objects in cookies