cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aristedes Maniatis <...@maniatis.org>
Subject Re: Returning unsaved records in an ObjectContext with SelectQuery
Date Thu, 16 Feb 2012 22:58:40 GMT
On Fri Feb 17 09:49:49 2012, John Huss wrote:
> I've accomplished what I needed with some custom code for now.  So ignore
> this.
>
> On Thu, Feb 16, 2012 at 12:20 PM, John Huss<johnthuss@gmail.com>  wrote:
>
>> Is there a way to have a SelectQuery also return matches found in the
>> unsaved objects in the ObjectContext?  If not, how can I query the contents
>> of the ObjectContext to look for matches?
>>
>> In WebObjects / Wonder, there was a property you could set on the context
>> - setIncludeEditingContextChanges(true) that would do this.
>>
>> Thanks,
>> John
>>
>

We've done something similar in specific cases by subclassing 
ObjectContact and searching through the context. I agree that it would 
be nice to have a switch for this which basically enables 
http://cayenne.apache.org/doc/in-memory-evaluation.html to be added to 
the results from the database.

Ari

-- 
-------------------------->
Aristedes Maniatis
GPG fingerprint CBFB 84B4 738D 4E87 5E5C  5EFA EF6A 7D2E 3E49 102A

Mime
View raw message