clear caches

From: Peter Schröder (Peter.Schroede..reenet-ag.de)
Date: Wed Jan 03 2007 - 08:02:20 EST

  • Next message: Andrus Adamchik: "Re: clear caches"

    hi and happy new year,

    i am looking for a method that tells cayenne to clear all cached objects, so that i can be sure the context will read fresh data from database next time a query is performed.

    i found these:

            context.getEntityResolver().clearCache();
            context.getObjectStore().getDataRowCache().clear();

    kind regards,
    peter



    This archive was generated by hypermail 2.0.0 : Wed Jan 03 2007 - 08:03:30 EST