db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mamta Satoor" <msat...@gmail.com>
Subject Re: how should store get an object based on format id and collation id?
Date Thu, 12 Apr 2007 01:01:01 GMT
Hi Mike,

I think the code should go in iapi.types.DataValueFactory. DVF has Locale of
the database initialized on it by BasicDatabase using setLocale method. I
will go ahead and change that method to also initialize a RuleBasedCollator
field using the Locale field. This RuleBasedCollator will be used to
construct CollatorSQLChar and other kinds of CollatorSQL... classes if the
collation associated with format id is not 0.

Let me look at how actual objects are created using DTSClassInfo to see how
it might fit into the puzzle.


On 4/11/07, Mike Matrigali <mikem_app@sbcglobal.net> wrote:
> o The suggestion has been made to move the object creation
>   stuff from montior to data type code.  Currently the monitor
>   routines are called as static's off of a public class.  Should
>   I create a similar "datatype" owned class or just move the
>   code into the datatype factory and make store tote and pass
>   around a datatypefactory reference where it needs it.
> o In looking at implementation I see that actual objects get
>   allocated by DTSClassInfo.getNewInstance() which is just
>   based off of the format id.  I am wondering if the proposal
>   is to change this behavior to something like
>   DTSClassInfo.getNewInstance(collation_id)?

View raw message