Hi Marcin,
We have three remaining issues that are must-haves for Beta, all of
them related to remote contexts: CAY-473, CAY-474, CAY-472.
http://objectstyle.org/confluence/display/CAY/1.2+RoadMap
I was going to work on these issues next. Since you volunteered to
help with caching features (CAY-473), I wanted to check with you
where are we with it right now?
Thanks
Andrus
On Jan 30, 2006, at 5:52 AM, Marcin Skladaniec wrote:
> Allright then, I'm waiting for the note, and I will try to work on
> those features.
> Cheers
> Marcin
>
> On 30/01/2006, at 11:11 AM, Andrus Adamchik wrote:
>
>> [forwarding to devel]
>>
>> Appreciate that! Let's hold it off for another week or so, as I am
>> refactoring the whole stack right now to accommodate nested
>> contexts. Once the code stabilizes (I'll send a note to DEVEL or
>> maybe even post an M11 milestone), it would be cool if you could
>> work on that.
>>
>> This is the environment setup instructions (you may have been
>> through this already):
>>
>> http://objectstyle.org/confluence/display/CAY/Developer+Guide
>>
>> Now the code... Based on the way things look now, we would need an
>> analog of DataContextSelectAction for CayenneContext. Current CVS
>> version of it (that I am actively refactoring) works sort of like
>> a chain of filters handling different query flags in turn, and
>> fetching only if results can't be obtained from cache:
>>
>> if (metadata.getPageSize() > 0) {
>> return new IncrementalFaultList(context, query);
>> }
>>
>> if (interceptOIDQuery() == DONE) {
>> return this.result;
>> }
>>
>> if (interceptRelationshipQuery() == DONE) {
>> return this.result;
>> }
>>
>> // intercept explicitly cached queries
>> if (QueryMetadata.LOCAL_CACHE.equals
>> (metadata.getCachePolicy())) {
>> return getListViaCache();
>> }
>>
>> return getList();
>>
>>
>> 'interceptOIDQuery' and 'interceptRelationshipQuery' are only used
>> for nested contexts, so you can ignore that at the moment.
>>
>> Andrus
>>
>>
>> On Jan 29, 2006, at 6:55 PM, Marcin Skladaniec wrote:
>>
>>>
>>> I was thinking about helping you with that feature, but I have
>>> any clue where to start ...
>>> Thank you,
>>> Marcin
>>>
>>>
>>> On 30/01/2006, at 10:02 AM, Andrus Adamchik wrote:
>>>
>>>> Marcin,
>>>>
>>>> Both features (result list caching and query pagination) are not
>>>> yet supported by CayenneContext (and therefore not available on
>>>> the client). I am working on something else right now, but I am
>>>> planning to add this in the nearest future.
>>>>
>>>> Andrus
This archive was generated by hypermail 2.0.0 : Tue Mar 28 2006 - 09:47:00 EST