Originally posted by Arjan Broer:
[...] But does that mean your server has to do the work they forgot to implement, or should you throw an exception for misusing your server.
That was the other plausible choice. Yes, that'd be fine as well. I chose the implicit lock way because that's how an RDBMS would behave. It's simply the behaviour I happen to be comfortable with... of course, in my design decision document, I argued that it had to be this way because
other developers would be likely to be more comfortable with this behaviour
If you implement an implicite lock, shouldn't we also check if the client had the most up to date record?
You can't, of course. But my primary aim was not to protect a stupid programmer against him/herself, but to protect all the nice programmers holding locks against a stupid one trying to clobber their locked record.
Did i just make a design decision???
Don't worry. We will all pretend we didn't notice
- Peter
[ January 16, 2003: Message edited by: Peter den Haan ]