Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 79561 invoked from network); 7 Apr 2005 10:04:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 7 Apr 2005 10:04:27 -0000 Received: (qmail 82720 invoked by uid 500); 7 Apr 2005 10:04:26 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 82686 invoked by uid 500); 7 Apr 2005 10:04:26 -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: "Derby Development" Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 82670 invoked by uid 99); 7 Apr 2005 10:04:25 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from basil.ocn.ne.jp (HELO smtp.basil.ocn.ne.jp) (222.146.51.83) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 07 Apr 2005 03:04:24 -0700 Received: from [192.168.0.32] (p1210-adsah09honb5-acca.tokyo.ocn.ne.jp [218.224.7.210]) by smtp.basil.ocn.ne.jp (Postfix) with ESMTP id 6D60E3948 for ; Thu, 7 Apr 2005 19:04:21 +0900 (JST) Received: from 127.0.0.1 (AVG SMTP 7.0.308 [266.9.4]); Thu, 07 Apr 2005 19:05:28 +0900 Message-ID: <000301c53b59$53667980$2000a8c0@Arkat> From: "TomohitoNakayama" To: "Derby Development" References: <1502276672.1112498837848.JavaMail.jira@ajax.apache.org> <006701c53ac1$e4cbfc80$2000a8c0@Arkat> <4254E45E.9020608@sbcglobal.net> Subject: Re: [jira] Commented: (DERBY-167) Inserting values in an identity column Date: Thu, 7 Apr 2005 19:05:23 +0900 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; format=flowed; charset=ISO-8859-1; reply-type=original X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hello. > 1) Are you looking at implementing GENERATED BY DEFAULT or still just > looking at Derby-167 in general and tryiing to understand the related > code? Status is not started coding yet. Current status is reading and studying related code of Derby-167 with interest. And I'm not sure whether discussion about possible solutions have done yet. > 2) Are you proposing an additional class? Is this for cleanup or for > some implementation concern regarding Derby-167? The fact that we > have an interface for DefaultInfo with one method makes me initially > kind of wary of that. Well ... Not proposing yet. I'm not sure whether we should make class of this kind. InitialValueRule may be too tribial to be a structure and making such structure would result in too complex code... But at least, concerning initial value, there are something with "default value" and "auto increment value". And they are handled separatedly in the ColumnDescripter class. After all ,it may not be suitable as work in Derby-167 ,because this is not cleanup task ... Best regards. /* Tomohito Nakayama tomoihto@rose.zero.ad.jp tomonaka@basil.ocn.ne.jp Naka http://www5.ocn.ne.jp/~tomohito/TopPage.html */ ----- Original Message ----- From: "Kathey Marsden" To: "Derby Development" Sent: Thursday, April 07, 2005 4:42 PM Subject: Re: [jira] Commented: (DERBY-167) Inserting values in an identity column > TomohitoNakayama wrote: > >> Now, I'm reading source codes relating to DERBY-167. >> >> And I found next constructors. >> >> ColumnDescriptor(java.lang.String columnName, int columnPosition, >> DataTypeDescriptor columnType, DataValueDescriptor columnDefault, >> DefaultInfo columnDefaultInfo, TableDescriptor table, UUID >> defaultUUID, long autoincStart, long autoincInc, boolean autoinc) >> Constructor for a ColumnDescriptor >> ColumnDescriptor(java.lang.String columnName, int columnPosition, >> DataTypeDescriptor columnType, DataValueDescriptor columnDefault, >> DefaultInfo columnDefaultInfo, UUID uuid, UUID defaultUUID, long >> autoincStart, long autoincInc, boolean autoinc) >> Constructor for a ColumnDescriptor. >> >> >> These constroctors have many parameters. >> >> AutoIncrementing intial value is related to following parameters: >> long autoincStart, >> long autoincInc, >> boolean autoinc >> Default intial value is related to following parameter: >> DefaultInfo columnDefaultInfo >> >> >> I wonder how to handle these separated information of rules for >> initial values in DERBY-167 task .... >> New class InitialValueRule may be appropriate to exist .... > > > Hi Tomohito, > > I am a little confused so will ask a few questions. > 1) Are you looking at implementing GENERATED BY DEFAULT or still just > looking at Derby-167 in general and tryiing to understand the related > code? > > 2) Are you proposing an additional class? Is this for cleanup or for > some implementation concern regarding Derby-167? The fact that we > have an interface for DefaultInfo with one method makes me initially > kind of wary of that. > > > Kathey > > > > > > > -- > No virus found in this incoming message. > Checked by AVG Anti-Virus. > Version: 7.0.308 / Virus Database: 266.9.4 - Release Date: 2005/04/06 > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.9.4 - Release Date: 2005/04/06