Re: What's the replacement for QueryUtils.updatedProperties()?

From: Øyvind Harboe (oyvind.harbo..ylin.com)
Date: Mon Jun 26 2006 - 04:22:01 EDT

  • Next message: Øyvind Harboe: "Using DataPort for backup, restore & repair"

    On 6/26/06, Andrus Adamchik <andru..bjectstyle.org> wrote:
    > There is no replacement.
    >
    > There is a non-public API in the ObjectStore that provides access to
    > the ObjectDiff:
    >
    > ObjectDiff diff = dataContext.getObjectStore().getChangesByObjectId
    > ().get(oid);
    > Object oldValue = diff.getSnapshotValue("property");
    >
    > You can use it by creating your own utility class in the
    > org.objectstyle.cayenne.access package. But use it at your own risk,
    > as non-public methods are not guaranteed to be preserved (or even
    > deprecated properly).

    Thanks!

    I'm going to go ahead and assume at my own risk that it will be
    possible to do this in Cayenne 3.0 as well somehow using some API or
    other. :-)

    >
    > Andrus

    -- 
    Øyvind Harboe
    http://www.zylin.com
    



    This archive was generated by hypermail 2.0.0 : Mon Jun 26 2006 - 04:22:29 EDT