db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel John Debrunner <...@debrunners.com>
Subject Re: Position of the ResultSet after updateRow?
Date Tue, 04 Jan 2005 18:29:58 GMT
Hash: SHA1

Mamta Satoor wrote:

> Hi,
> Some of you might recall the discussion on where the ResultSet should be
> positioned after deleteRow and the conclusion that it will be placed right
> before the next row in the ResultSet.
> My question is about ResultSet position after updateRow. An updateRow
> can make the row not qualify for the original select query.

Can anyone from the Sun JDBC team comment on how updateRow() and
insertRow() are intended to behave when they modify or create rows that
would not qualify according to the SQL query that created the ResultSet?

Reading between the lines in the JDBC book seems to imply that the
updated or inserted row are always part of the ResultSet, even though a
subsequent execution would not return that row.
I can see this approach makes sense for going through a list of items in
an application. Say all items with a price <= 10.0, and modifying the
price of some to be > 10.0, as a user I might expect to see the newly
modified row remain in my view, rather than just disappear.


Version: GnuPG v1.2.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org


View raw message