You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by da...@apache.org on 2007/11/07 13:40:40 UTC
svn commit: r592730 - in /db/derby/docs/trunk/src:
devguide/rdevconceptssur.dita ref/rrefjdbc77156.dita
Author: dag
Date: Wed Nov 7 04:40:39 2007
New Revision: 592730
URL: http://svn.apache.org/viewvc?rev=592730&view=rev
Log:
DERBY-1769 Add mention that Derby supports rowUpdated, rowDeleted with a result set concurrency of CONCUR_READ_ONLY
Patch DERBY-1769.{diff,stat}.
Modified:
db/derby/docs/trunk/src/devguide/rdevconceptssur.dita
db/derby/docs/trunk/src/ref/rrefjdbc77156.dita
Modified: db/derby/docs/trunk/src/devguide/rdevconceptssur.dita
URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/src/devguide/rdevconceptssur.dita?rev=592730&r1=592729&r2=592730&view=diff
==============================================================================
--- db/derby/docs/trunk/src/devguide/rdevconceptssur.dita (original)
+++ db/derby/docs/trunk/src/devguide/rdevconceptssur.dita Wed Nov 7 04:40:39 2007
@@ -81,12 +81,21 @@
</note>
</li>
<li>Rows inserted to the table may become visible in the result set.</li>
+
<li><codeph>ResultSet.rowDeleted()</codeph> returns true if the row
-has been deleted using the cursor or result set. It does not detect
-deletes made by other statements or transactions. </li>
+has been deleted using the cursor or result set. It does not detect
+deletes made by other statements or transactions. Note that the
+method will also work for result sets with concurrency
+CONCUR_READ_ONLY if the underlying result set is FOR UPDATE and a
+cursor was used to delete the row.
+</li>
<li><codeph>ResultSet.rowUpdated()</codeph> returns true if the row
has been updated using the cursor or result set. It does not detect
-updates made by other statements or transactions. </li>
+updates made by other statements or transactions. Note that the
+method will also work for result sets with concurrency
+CONCUR_READ_ONLY if the underlying result set is FOR UPDATE and a
+cursor was used to update the row.
+</li>
<li> <note>Both <codeph>ResultSet.rowUpdated()</codeph> and
<codeph>ResultSet.rowDeleted()</codeph> return true if the row
first is updated and later deleted. </note> </li>
Modified: db/derby/docs/trunk/src/ref/rrefjdbc77156.dita
URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/src/ref/rrefjdbc77156.dita?rev=592730&r1=592729&r2=592730&view=diff
==============================================================================
--- db/derby/docs/trunk/src/ref/rrefjdbc77156.dita (original)
+++ db/derby/docs/trunk/src/ref/rrefjdbc77156.dita Wed Nov 7 04:40:39 2007
@@ -156,8 +156,8 @@
<row>
<entry colname="1"><i>boolean</i></entry>
<entry colname="2"><i>rowDeleted()</i></entry>
-<entry colname="3">For forward-only result sets this methods always returns <i>false</i>, for
-scrollable result sets it returns <i>true</i> if the row has been deleted.</entry>
+<entry colname="3">For forward-only result sets this method always returns <i>false</i>, for
+scrollable result sets it returns <i>true</i> if the row has been deleted, via result set or positioned delete.</entry>
</row>
<row>
<entry colname="1"><i>boolean</i></entry>
@@ -167,8 +167,8 @@
<row>
<entry colname="1"><i>boolean</i></entry>
<entry colname="2"><i>rowUpdated()</i></entry>
-<entry colname="3">For forward-only result sets this methods always returns <i>false</i>, for
-scrollable result sets it returns <i>true</i> if the row has been updated.</entry>
+<entry colname="3">For forward-only result sets this method always returns <i>false</i>, for
+scrollable result sets it returns <i>true</i> if the row has been updated, via result set or positioned update.</entry>
</row>
<row>
<entry colname="1"><i>boolean</i></entry>