Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 90004 invoked from network); 9 Nov 2007 14:48:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Nov 2007 14:48:12 -0000 Received: (qmail 92855 invoked by uid 500); 9 Nov 2007 14:47:59 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 92816 invoked by uid 500); 9 Nov 2007 14:47:59 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 92807 invoked by uid 99); 9 Nov 2007 14:47:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Nov 2007 06:47:59 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Nov 2007 14:48:11 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id CA073714241 for ; Fri, 9 Nov 2007 06:47:50 -0800 (PST) Message-ID: <13857161.1194619670824.JavaMail.jira@brutus> Date: Fri, 9 Nov 2007 06:47:50 -0800 (PST) From: "Dag H. Wanvik (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Closed: (DERBY-1769) Add mention that Derby supports rowUpdated, rowDeleted with a result set concurrency of CONCUR_READ_ONLY In-Reply-To: <6635546.1156777942269.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-1769?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dag H. Wanvik closed DERBY-1769. -------------------------------- Resolution: Fixed Fix Version/s: 10.3.1.5 Merged to 10.3 docs as svn 593547. > Add mention that Derby supports rowUpdated, rowDeleted with a result set concurrency of CONCUR_READ_ONLY > --------------------------------------------------------------------------------------------------------- > > Key: DERBY-1769 > URL: https://issues.apache.org/jira/browse/DERBY-1769 > Project: Derby > Issue Type: Improvement > Components: Documentation > Affects Versions: 10.2.1.6, 10.2.2.0, 10.3.1.4 > Reporter: Dag H. Wanvik > Assignee: Dag H. Wanvik > Priority: Minor > Fix For: 10.3.1.5, 10.4.0.0 > > Attachments: DERBY-1769.diff, DERBY-1769.stat, DERBY-1769.zip > > > We should add a note on the behavior on the rowXXX methods in > java.sql.ResultSet, since they now (as of JDBC 4.0) have an optional > feature. > Cf this "Note:" for rowDeleted in JDBC4 API: > > boolean rowDeleted() throws SQLException > > > > Retrieves whether a row has been deleted. A deleted row may leave a > > visible "hole" in a result set. This method can be used to detect > > holes in a result set. The value returned depends on whether or not > > this ResultSet object can detect deletions. > > > > Note: Support for the rowDeleted method is optional with a result set > > concurrency of CONCUR_READ_ONLY > > > > Returns: > > true if the current row is detected to have been deleted > > by the owner or another; false otherwise > > Throws: > > SQLException - if a database access error occurs or this > > method is called on a closed result set > > > > SQLFeatureNotSupportedException - if the JDBC driver does > > not support this method > > Since: > > 1.2 > > See Also: > > DatabaseMetaData.deletesAreDetected(int) > For updatable result sets, Derby supports calling the methods > rowDeleted, rowUpdated and rowInserted even if the RS had concurrency > CONCUR_READ_ONLY. If the query's underlying result set if scrollable > and updatable, rowUpdated and rowDeleted can be used to detect if > changes were made using positioned UPDATE/DELETEs, since positioned > modifications are seen by the result set in Derby. Normally, though, > such usage is not recommended. If updates are required, the RS should > have concurrency CONCUR_UPDATABLE. > rowInserted will always return false, since Derby does not detect > inserts. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.