![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I am curious as to what sort of dependencies exist between a ResultSet and its corresponding Connection. Let's say I create a Statement on a Connection and then execute a query. Before I am finished with the corresponding ResultSet, I start a transaction on the same Connection and execute a series of Statements. I've noticed that if I use the same Statement object in the transaction (e.g. to execute an update), the first ResultSet is closed. However, if I guarantee the use of new Statement objects in my transaction, should the ResultSet be affected at all by the operations that occur in the transaction? Short of the Connection being closed due to a fatal error, does the ResultSet feel any affects due to further operations on the Connection? |
![]() |
| Thread Tools | |
| Display Modes | |
| |