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.