Re: TransactioEvent
Holger Krug <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.mdr.devel |
|---|---|
| Message-ID | <[email protected]> |
On Tue, Aug 06, 2002 at 10:21:55AM +0200, Jan Kozusznik wrote: > I decided to use TransactionEvent's but I don't know how to find out > that the Transaction is commited or rollbacked. What about adding > information about commit or rollback to the TransactionEvent. The original version of TransactionEvent had this information, but it was removed, because it's not necessary: If you receive a TransactionEvent in your MDRChangeListener.change(MDRChangeEvent e) implementation, it was a commit. If you receive a TransactionEvent in your MDRPreChangeListener.changeCancelled(MDRChangeEvent) implementation, it was a rollback. Probably we should add this to the API docs. -- Holger Krug [email protected]