Please check patch for JIRA-961. A>,B>,C> is the approach followed.
Regards, Amita On 8/1/07, Amita Vadhavkar <[EMAIL PROTECTED]> wrote: > > A>So far, RDB DAS was doing SDOUtil.createTypeHelper() during each > construction of GraphBuilderMetadata(GBMD). This was resulting in a new > instance fo TypeHelper for each new query execution. This is not > required as the data model used during one runtime of DAS is constant. > > B>Using the new SDO APIs, we can do HelperProvider.getDefaultContext > ().getTypeHelper() > in this case to consistently use the same TypeHelper instance. > > C>Another question is, when a user extends ReadCommandImpl and also > provide > a static data model - like in - ReadCustomersStaticTypesCommand from test > suite, > and also uses a HelperContext different than DefaultContext to register > the static Types, > (please see, > http://www.mail-archive.com/[email protected]/msg20743.html), > then how to make DAS and thus GraphBuiilderMetaData aware of this new > HelperContext. > One simple solution will be providing a way through DASImpl to pass the > helperContext > to GraphBuilderMetaData, when it is not the DefaultContext. > BaseCommandImpl, > can hold ref to HelperContext instance and pass it to GBMD. GBMD will use > passed > HelperContext and in its absense will use the default one. > > D> Alternative to C> will be mandating user to use DefaultHelperContext? > > Please give comments. > > Regards, > Amita > > On 7/20/07, Amita Vadhavkar <[EMAIL PROTECTED]> wrote: > > > > Hi, > > I have started checking the details and will consolidate my findings > > here. > > > > Regards, > > Amita > > > > On 7/20/07, Luciano Resende < [EMAIL PROTECTED]> wrote: > > > > > > Hey > > > > > > Kelvin gave as some head's up of upcoming changes that might affect > > > DAS [1] and [2] (Thanks Kelvin). I think there is also a JIRA > > > regarding integration with latest SDO 2.1 APIs [2] and the usage of > > > deprecated SDO APIs [4]. It would be great if someone could help on > > > getting these issues and JIRAs reviewed, and submit patches as needed. > > > > > > [1] > > > http://www.mail-archive.com/tuscany-dev%40ws.apache.org/msg20388.html > > > [2] http://www.mail-archive.com/tuscany-dev%40ws.apache.org/msg20369.html > > > > > > [3] http://issues.apache.org/jira/browse/TUSCANY-986 > > > [4] http://issues.apache.org/jira/browse/TUSCANY-961 > > > > > > -- > > > Luciano Resende > > > Apache Tuscany Committer > > > http://people.apache.org/~lresende<http://people.apache.org/%7Elresende> > > > http://lresende.blogspot.com/ > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > >
