Re: Deprecate SelectQuery in 4.2

Andrus Adamchik <[email protected]>
Newsgroups gmane.comp.java.cayenne.user
Message-ID <[email protected]>
> 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 <[email protected]> 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 <[email protected]> wrote:
> 
>> Arseni,
>> 
>> What is the ObjectSelect analog to
>> 
>>        RefreshQuery
>> and
>>        setCacheStrategy
>> 
>> Thanks
>> Joe
>> 
>> 
>>> On Jun 28, 2019, at 9:47 AM, Arseni Bulatski <[email protected]>
>> 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.
>> 
>>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.