Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Databases / March 2004

Tip: Looking for answers? Try searching our database.

OracleCachedRowSet

Thread view: 
Peter Kirk - 24 Mar 2004 08:59 GMT
Hi there

is there anyone here who knows about OracleCachedRowSet?

My class calls a method in an existing DAO class which returns an
OracleCachedRowSet to me, containing data from the database. Do I need to
"close" this object after I have used it?

I don't really understand how this object works - it extends ResutSet and a
ResultSet really should be closed after use (although I realise that the
driver should handle tidying up when the Connection is closed). But my
experimentations with OracleCachedRowSet show that if I create my own
Connection, and obtain an OracleCachedRowSet from a query, when I close the
OracleCachedRowSet  then the Connection also becomes closed!

Thanks,
Peter
Shuaib Kauchali - 29 Mar 2004 20:25 GMT
"> My class calls a method in an existing DAO class which returns an
> OracleCachedRowSet to me, containing data from the database. Do I need to
> "close" this object after I have used it?
[quoted text clipped - 5 lines]
> Connection, and obtain an OracleCachedRowSet from a query, when I close the
> OracleCachedRowSet  then the Connection also becomes closed!

I think that is true to the specs.  The close() on the CachedRowset closes
the underlying connection to the database - if there is one open.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.