Re: transactions, row locking, race condition?

From: tnaki..ofthome.net
Date: Tue Apr 12 2005 - 08:46:17 EDT

  • Next message: Pirola Davide: "RE: Change cayenne.xml name dynamically"

    Tore Halset wrote:

    > Using optimistic locking cayenne will create a sql update statement
    > like:
    > update candidates set my_timestamp='2005-04-11' where id=17 and
    > my_timestamp is null;
    >
    > "my_timestamp is null" is caused by the optimistic locking and is
    > used to make sure the row has not been modifyed by another client.
    >
    > http://www.objectstyle.org/confluence/display/CAY/
    > Optimistic+Locking+Explained

    The link was as useful as the explanation, thanks. The great thing is it
    can work great inspite of being completely database independent.

    Tomislav



    This archive was generated by hypermail 2.0.0 : Tue Apr 12 2005 - 08:42:11 EDT