Hi Thomas,

there is light at the end of the tunnel :-)

tyk
Marco

Thomas Mahler wrote:

Hi Marco,

Marco Achermann wrote:

Hi List

in tutorial2 is a short example about updating an object. It shows that all modifications on the model happen after the object ist locked by the tx so the object can be updatet properly.

Is there a way to update a given model though the modifications where performed bevore locking the model?


This is not supported by ODMG API (not OJB specific!)
With a simple trick you can still implement it:

1. lock the object to the transaction
2. cast the transaction object to org.apache.ojb.odmg.TransactionImpl.
3. call the method markdirty(object)

cheers,
thomas


tyk Marco



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




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






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



Reply via email to