db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kathey Marsden <kmarsdende...@sbcglobal.net>
Subject Re: [jira] Commented: (DERBY-167) Inserting values in an identity column
Date Thu, 07 Apr 2005 07:42:22 GMT
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




Mime
View raw message