Re: Rollbacks and Listeners

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

  • Next message: Andrus Adamchik: "Re: Web site link to example and a proposal for a new example link"

    I meant

    callbacks are not called during rollback :)

    2010/8/9 Andrey Razumovsky <razumovsky.andre..mail.com>

    > 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
    >

    -- 
    Andrey
    



    This archive was generated by hypermail 2.0.0 : Mon Aug 09 2010 - 10:17:28 UTC