cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrus Adamchik <and...@objectstyle.org>
Subject Re: Deprecate SelectQuery in 4.2
Date Wed, 03 Jul 2019 10:36:34 GMT
> RefreshQuery is another type of query

I think that's the answer here. RefreshQuery is its own thing, and you can keep using it.

Andrus


> On Jul 2, 2019, at 10:05 AM, Arseni Bulatski <abulatski@objectstyle.com> wrote:
> 
> Hi, Joe
> RefreshQuery is another type of query and is used to invalidate individual
> cache groups explicitly. To create ObjectSelect with similar behavior you
> can set cacheStrategy to QueryCacheStrategy.LOCAL_CACHE_REFRESH  or
> QueryCacheStrategy.SHARED_CACHE_REFRESH, depends on what type of cache you
> are using.
> Analog of setCacheStrategy for ObjectSelect is
> ObjectSelect.cacheStrategy(QueryCacheStrategy strategy).
> 
> On Mon, Jul 1, 2019 at 10:24 PM Joe Baldwin <jfbaldwin@earthlink.net> wrote:
> 
>> Arseni,
>> 
>> What is the ObjectSelect analog to
>> 
>>        RefreshQuery
>> and
>>        setCacheStrategy
>> 
>> Thanks
>> Joe
>> 
>> 
>>> On Jun 28, 2019, at 9:47 AM, Arseni Bulatski <abulatski@objectstyle.com>
>> wrote:
>>> 
>>> Hi all,
>>> 
>>> SelectQuery is planned to be deprecated in 4.2.
>>> ObjectSelect has better api and is recommended to use.
>>> 
>>> PR: https://issues.apache.org/jira/browse/CAY-2523
>>> 
>>> Please, write your thoughts about it.
>> 
>> 


Mime
View raw message