cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrus Adamchik <>
Subject Re: Error when join table spans datamaps
Date Fri, 19 May 2006 22:06:25 GMT

On May 19, 2006, at 5:57 PM, Mike Kienenberger wrote:

> On 5/18/06, Andrus Adamchik <> 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).


View raw message