Re: Determining objects affected by a delete

From: Andrey Razumovsky (razumovsky.andre..mail.com)
Date: Wed May 20 2009 - 12:07:55 EDT

  • Next message: Devyandu: "cayenne.datacontext - session attribute- question"

    Hi Dave,

    Probably the easiest way to archieve that is to save
    ObjectContext.deletedObjects() collection before deletion and compare it to
    collection returned by same method after deletion. This will work if your
    context isn't touched by several threads.

    Andrey

    2009/5/20 Dave Lamy <davelam..mail.com>

    > When an object is deleted via the UI, I would like to be able to report
    > back
    > all objects that were affected by the delete, especially objects that were
    > deleted by cascade rules. What is the best way to determine this affected
    > set? Thanks in advance for any insight on this.
    >
    > Dave
    >



    This archive was generated by hypermail 2.0.0 : Wed May 20 2009 - 12:08:33 EDT