File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes Dis-connected resultset Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Dis-connected resultset" Watch "Dis-connected resultset" New topic
Author

Dis-connected resultset

tim_shea
Greenhorn

Joined: Feb 12, 2002
Posts: 1
Is there a way I could make a DB call using JDBC to any DB. Get a Statement back and then close my connection to the DB. And still have the data in the Statement.
Or, am I stuck having to transfer this data out of the ResultSets into other objects before closing the connection?
jayram
Ranch Hand

Joined: Oct 30, 2000
Posts: 94
tim,
I think you need to use CachedRowSet for this purpose. Plz checkout this article for more
http://developer.java.sun.com/developer/Books/JDBCTutorial/chapter5.html
Cheers
Jayram
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

"tim_shea",
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp.
We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please edit your profile and select a new name which meets the requirements.
Thanks.
Dave
 
Don't get me started about those stupid light bulbs.
 
subject: Dis-connected resultset