Re: Rollbacks and Listeners

From: Andrey Razumovsky (razumovsky.andre..mail.com)
Date: Mon Aug 09 2010 - 10:16:05 UTC

  • Next message: Andrey Razumovsky: "Re: Rollbacks and Listeners"

    Hi,

    Unless something's changed, callbacks are not called during callback. Also
    note that only "post" callbacks can tell for sure that DB operations had
    happened

    2010/8/9 Bruno René Santos <brunoren..olos.pt>

    > Hello all,
    >
    >
    >
    > Im using cayenne on a banking system, where commits and rollbacks are
    > critical.
    > I was thinking about using cayenne callbacks to include the creation of
    > logs
    > during database operations. My doubt is what happens when there is a
    > rollback on
    > the database during a transaction in terms of callbacks? Do all Pre...
    > callbacks
    > are called but no Post.. callbacks? Is there any way to know on the
    > callbacks
    > that the objects were rollbacked?
    >
    >
    >
    > Regards
    >
    > Bruno Santos
    >
    >
    >
    >

    -- 
    Andrey
    



    This archive was generated by hypermail 2.0.0 : Mon Aug 09 2010 - 10:16:57 UTC