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]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.