db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Matrigali <mikem_...@sbcglobal.net>
Subject Re: some comments on collation wiki page
Date Tue, 03 Apr 2007 17:47:36 GMT

Mamta Satoor wrote:
> Mike, thanks for going through the wiki page. Especially, the store 
> section since I am not too familiar with store code.
> Following are my responses
> 1)Mike:Obtain collation id(type) from DataValueDescriptor(DVD) through 
> DVD.getCollateId method.
> The way I had collation in mind, collation type would be stored only in 
> DataTypeDescriptor(DTD) and DVD would only store Collator object in DVD, 
> ie the DVD will be unaware of how the Collator object was created using 
> a specific collation type. The DVD for non-default-collation subclass of 
> SQLChar is CollatorSQLChar and currently, it's constructor looks as follows
>      public CollatorSQLChar(String val, RuleBasedCollator 
> collatorForCharacterDatatypes)
> ie, no collation type info is passed to the CollatorSQLChar. May be to 
> support the store requirement, we should add another parameter to the 
> constructor above, called collationId. This collationId can later be 
> retrieved by store using DVF.getCollateId. Any comments from anyone?

Yes looks like you need to pass collateId in constructor and save it 
around just for this call, I don't think it should be used for anything
else.  I don't see another way unless it is possible to write a function
that returns a collate id based on an input RuleBasedCollator.

View raw message