cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Jarrel <garyjar...@gmail.com>
Subject Re: Removing Cayenne cache groups
Date Mon, 31 May 2010 00:16:48 GMT
On Sat, May 29, 2010 at 2:22 PM, Bob Schellink <sabob1@gmail.com> wrote:

>
> That said, DataObject.getDataContext is deprecated. What is the recommended way to lookup
the
> DataDomain from inside a DataObject callback? Configuration.getSharedConfiguration().getDomain()?
>
> Kind regards
>
> Bob
>

I tend to call the DataObjects getObjectContext() method and cast that
to DataContext and then access the caches from there.

i.e. ((DataContext)getObjectContext()).getQueryCache() //for local cache

Cheers,

Gary

Mime
View raw message