db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert S. Sfeir" <rob...@codepuccino.com>
Subject Re: Thoughts on Attach/Detach; Optimistic/Pessimistic Tx's
Date Thu, 08 Jul 2004 11:24:52 GMT
> Possible ways:
> pb.setOptimistic(true);
> pb.beginTransaction(); // is an optimistic transaction now

I'd pick this one since it allows to change the behavior on the fly in 
the app based on certain conditions we pass.

if you use option #2 then you app will always use it, and you'd have to 
write an if statement to execute one way or the other.


To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org

View raw message