Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 70230 invoked from network); 5 Apr 2006 14:00:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 Apr 2006 14:00:40 -0000 Received: (qmail 16600 invoked by uid 500); 5 Apr 2006 14:00:34 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 16573 invoked by uid 500); 5 Apr 2006 14:00:34 -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 16554 invoked by uid 99); 5 Apr 2006 14:00:33 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Apr 2006 07:00:33 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Apr 2006 07:00:33 -0700 Received: from ajax (localhost.localdomain [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 27C76D49FF for ; Wed, 5 Apr 2006 15:00:12 +0100 (BST) Message-ID: <1891658858.1144245612160.JavaMail.jira@ajax> Date: Wed, 5 Apr 2006 15:00:12 +0100 (BST) From: =?utf-8?Q?=C3=98ystein_Gr=C3=B8vlen_=28JIRA=29?= To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-775) Network client: Add support for scrollable, updatable, insensitive result sets In-Reply-To: <29588345.1135014331488.JavaMail.jira@ajax.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/DERBY-775?page=3Dcomments#action= _12373360 ]=20 =C3=98ystein Gr=C3=B8vlen commented on DERBY-775: --------------------------------------- So far I have reviewed all code except test changes. The patch looks good. I have a few comments/questions: 1. metadata_net.properties: - Is the format and constant values used here documented anywhere? 2. DRDAConnThread - parseSQLATTR(): Variable insensitive can be removed entirely. It serves no purpose anymore. 3. NetResultSet/NetResultSet40 - Parameters of constructor has comments with possible values. This needs to be updated to include QRYSNSSTC. 4. NetCursor - The writeup says the purpose is to pop warnings, but the code seems to only handle a single warning. - Why do you have to delay the call to setIsUpdataDeleteHole until later and not do it when testing for warnings? 5. NetStatementReply - Call to ClientJDBCObjectFactory.newNetResultSet() lists possible values. This needs to be updated to include QRYSNSSTC. 6. Statement - Why have you made warnings_ protected? It seems like it is package private that is needed. Why not keep it private and supply a get-method? 7. ResultSet - Why have you made suggestedFetchSize_ public? It seems like it could be protected. - Comments for fetchSize_ and suggestedFetchSize_ are a bit brief. (And if they are to be public, you should supply javadoc). - relativex(): Why do not the isBeforeFirstX()/isAfterLastX() test for all result sets? - relativex(): It seems like the code to call getAbsoluteResultSet is duplicated. I do not think the second call will ever be executed. - rowUpdated(): Why not always call getIsRowUpdated? I would think it was valid for all result sets. - rowUpdated()/rowDeleted(): Thss methods are a bit asymmetric. rowUpdated() calls a get-method while rowDeleted accesses isUpdateDeleteHole_ directly. - updateRow(): I tried to browse the spec and the javadoc and I did not find anything that said that there is a difference between forward only cursors and scrollable cursors with respect to validity of the current position after and update. Where is this stated? - checkForUpdatableResultSet(): What is the difference between this new method and the existing checkUpdatableCursor()? It seems better to change the existing than to make a new method. > Network client: Add support for scrollable, updatable, insensitive result= sets > -------------------------------------------------------------------------= ----- > > Key: DERBY-775 > URL: http://issues.apache.org/jira/browse/DERBY-775 > Project: Derby > Type: New Feature > Components: Network Client, JDBC > Versions: 10.2.0.0 > Reporter: Dag H. Wanvik > Assignee: Dag H. Wanvik > Priority: Minor > Attachments: 775-writeup.txt, derby-775-1.diff, derby-775-1.stat, derby-= 775-2.diff, derby-775-2.stat > > This is a part of the DERBY-690 effort. --=20 This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira