aspose file tools*
The moose likes JDBC and the fly likes how to use disconnceted architecture using JDBC in java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "how to use disconnceted architecture using JDBC in java" Watch "how to use disconnceted architecture using JDBC in java" New topic
Author

how to use disconnceted architecture using JDBC in java

Dhiren Lodhia
Greenhorn

Joined: Mar 05, 2008
Posts: 14
Hi every one,

i want to know how can we use disconnected database architecture using JDBC in java. i.e what i mean is something like DataSet in .Net.
when we take data in ResultSet & when i want to take data from ResultSet the database connection has to be OPEN else it gives error.
i want to take data from database onces and then close Connection then use data!!!
I have Heard about class called CachedRowSet,What is that exactly & how to use it??
please give a small & simple example if possible...........

Thanks in Advance


Dhiren Lodhia
SCJP 5.0 (93%)
Shailesh Chandra
Ranch Hand

Joined: Aug 13, 2004
Posts: 1081

Yes, CachedRowset is the answer for you ! You can use the CachedRowset even after closing the connection.

On a quick search on google will give you many results. I recommend you to read this http://www.javaworld.com/javaworld/jw-02-2001/jw-0202-cachedrow.html

Thanks,
Shailesh


Gravitation cannot be held responsible for people falling in love ~ Albert Einstein
 
jQuery in Action, 2nd edition
 
subject: how to use disconnceted architecture using JDBC in java