RE: Transactions

From: Dave Merrin (dmerri..pasystems.co.uk)
Date: Wed Oct 19 2005 - 11:27:35 EDT

  • Next message: Andrus Adamchik: "Re: Transactions"

    Think I'm confusing myself here. Am I right to say that Cayenne will
    automatically create a transaction under the hood for me? Then if
    revertChanges is called the transaction is implicitly rolled back?

    If all this is true when exactly is the transaction created? i.e. all
    queries/ first update or delete?

    Cheers,

    Dave

    > -----Original Message-----
    > From: Dave Merrin [mailto:dmerri..pasystems.co.uk]
    > Sent: 19 October 2005 16:10
    > To: Cayenne-User
    > Subject: Transactions
    >
    >
    >
    > Maybe I'm missing something but I'm having trouble working out
    > how to manage
    > my own transactions. I see there is a Transaction class and that the
    > DataContext has a method 'performQueries' which takes a
    > transaction object.
    >
    > I want to run a single query on the database in an existing
    > transaction. How
    > can I do this?
    >
    > Cheers,
    >
    > Dave
    >



    This archive was generated by hypermail 2.0.0 : Wed Oct 19 2005 - 11:30:54 EDT