On Sat, May 29, 2010 at 2:22 PM, Bob Schellink <sabob..mail.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
This archive was generated by hypermail 2.0.0 : Mon May 31 2010 - 00:17:22 UTC