ODMG Delete : markDelete or deletePersistent

2006-12-08 Thread Bruno CROS
Hi, Just one question. Using ODMG, if deletePersistent(o) is called from the Impl.getDatabase(), how SQL DELETE query post can be done with the other INSERT/UPDATE in the same SQL transaction without refering THE transaction? Why ODMG delete object tutorial talk about deletePersitent way,

Re: ODMG Delete : markDelete or deletePersistent

2006-12-08 Thread Bruno CROS
Looking into OJB implemenations, it seems that deletePersistent use the transaction of the current thread. So ok for the SQL transaction sequence, sorry for asking in last mail. I was confused between DB.deletePersistent(o), ExtTx.markDelete(o), and ExtTx.deletePersistent(o) methods. It seems all

Re: ODMG Delete : markDelete or deletePersistent

2006-12-08 Thread Armin Waibel
Hi Bruno, Bruno CROS wrote: Hi, Just one question. Using ODMG, if deletePersistent(o) is called from the Impl.getDatabase(), how SQL DELETE query post can be done with the other INSERT/UPDATE in the same SQL transaction without refering THE transaction? Within the Database object the tx

Re: ODMG Delete : markDelete or deletePersistent

2006-12-08 Thread Armin Waibel
Bruno CROS wrote: Looking into OJB implemenations, it seems that deletePersistent use the transaction of the current thread. So ok for the SQL transaction sequence, sorry for asking in last mail. I was confused between DB.deletePersistent(o), ExtTx.markDelete(o), and ExtTx.deletePersistent(o)