Re: Prepared Statement
- From: "Bjorn Abelli" <bjorn_abelli@xxxxxxxxxxxxxxxxxxxxx>
- Date: 7 Jun 2006 11:35:45 +0200
"lakshmi Ashok" wrote...
Am I getting this correct?
There are drivers that procure the result set into the calling program
memory space .. and will let me iterate the result set even after
releasing the connection?
There *might* be, as this is completely up to the implementor.
But I wouldn't count on finding any such implementations, as it's not a
requirement. On the contrary, the ResultSet interface states in the API:
"A ResultSet object is automatically closed when the Statement object that
generated it is closed, re-executed, or used to retrieve the next result
from a sequence of multiple results."
http://java.sun.com/j2se/1.5.0/docs/api/java/sql/ResultSet.html
If you want a "disconnected ResultSet", you have a better chance to look
into any implementations of RowSet, e.g. CachedRowSet:
http://java.sun.com/j2se/1.5.0/docs/api/javax/sql/rowset/CachedRowSet.html
/// Bjorn A
Inviato da X-Privat.Org - Registrazione gratuita http://www.x-privat.org/join.php
.
- References:
- Prepared Statement
- From: lsrinu
- Re: Prepared Statement
- From: lakshmi Ashok
- Re: Prepared Statement
- From: Bjorn Abelli
- Re: Prepared Statement
- From: lakshmi Ashok
- Prepared Statement
- Prev by Date: Re: Prepared Statement
- Next by Date: Re: Java SQL interface
- Previous by thread: Re: Prepared Statement
- Next by thread: Hibernate mappings
- Index(es):
Relevant Pages
|