On Wed, 18 Dec 2002 11:36, you wrote:
> Rodney Schneider wrote:
> > Can you think of a way to do this without having to change the dtd
> > of the Torque database schema?
>
> I take it you mean as an extension to Torque to support optimistic
> locking for any class?

Yes.

> I don't use Torque so I'm not the best person
> to ask :-) I was thinking about extending just the Torque generated
> class and/or peer.

Unfortunately that is the only option at the moment...  I guess we 
could patch the IDBroker to do this until a more general solution is 
implemented.

> > Hai Hoang proposed the following addition to the schema, but I
> > don't think it was ever implemented...
> > [...]
> > Notice the extra "versionProperty" attribute.
>
> That looks like a possible way forward. Probably a solution that
> supports either integer serial numbers or date stamps (i.e. one or
> the other) would cover the bases for most applications.

Yes.  

> A DTD change is probably OK if it's backwards compatible (e.g.
> through the addition of optional attributes).

Hmmm, then we could implement it so that the save() method of the 
Torque objects and the doUpdate() method of the Peers use optimistic 
locking only if the versionProperty attribute is present.

I guess this should be discussed on torque-dev if anyone wants to 
implement it...

-- Rodney

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to