cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Kienenberger" <mkien...@gmail.com>
Subject Re: Error when join table spans datamaps
Date Fri, 19 May 2006 22:12:42 GMT
Yeah, it's the relationships that are killing me -- in all other
cases, I can just write my own code.

Thanks!

On 5/19/06, Andrus Adamchik <andrus@objectstyle.org> wrote:
>
> On May 19, 2006, at 5:57 PM, Mike Kienenberger wrote:
>
> > On 5/18/06, Andrus Adamchik <andrus@objectstyle.org> wrote:
> >> Short of
> >> horrible performance, maybe doing joins within Cayenne SQLAction code
> >> is not such bad an idea???
> >
> > Taking a brief look at SQLAction -- Is there a way to register an
> > observer/delegate with the engine from the application that can return
> > an alternate query to execute?
>
> One way to customize SQLAction is to subclass a query itself
> overriding 'createSQLAction'. But this won't work for relationships
> of course.
>
> Alternatively you can use DataConextDelegate to intercept the queries
> and if needed wrap them in a custom decorator that builds the right
> SQLAction (check various indirect queries on how the decorator might
> look like, e.g. ObjectIdQuery).
>
> Andrus
>
>

Mime
View raw message