Re: Invalidate lookup tables cache?

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Wed Jul 21 2004 - 10:58:08 EDT

  • Next message: Andrus Adamchik: "Re: Handling Transactions"

    On Jul 21, 2004, at 10:08 AM, Mike Kienenberger wrote:

    > I haven't used this feature yet myself, but I'd guess that you could
    > either
    > call the following method explicitly after an update (which seems like
    > a
    > sure thing),
    >
    > return ctxt.performQuery("AlleSectoren", true);

    This is currently the easiest way to refresh query results. So execute
    this query in the same context that committed the changes to
    AlleSectoren, right after the commit is done.

    Another more direct way is this:

    ctxt.getObjectStore().getDataRowCache().cacheSnapshots("AlleSectoren",
    null);

    Andrus



    This archive was generated by hypermail 2.0.0 : Wed Jul 21 2004 - 10:58:13 EDT