[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 : Sun Jan 29 2006 - 19:11:08 EST