Package com.nomagic.uml2.transaction
Class TransactionCommitListenerWrapper
- java.lang.Object
-
- com.nomagic.uml2.transaction.TransactionCommitListenerWrapper
-
- All Implemented Interfaces:
com.dassault_systemes.modeler.foundation.transaction.TransactionListener
public class TransactionCommitListenerWrapper extends java.lang.Object implements com.dassault_systemes.modeler.foundation.transaction.TransactionListener
A wrapper of @TransactionCommitListener
-
-
Constructor Summary
Constructors Constructor Description TransactionCommitListenerWrapper(TransactionCommitListener listener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
allTransactionsCompleted(com.dassault_systemes.modeler.foundation.transaction.TransactionOptions options)
Invoked when all transactions (master and nested) are completed.TransactionCommitListener
getListener()
java.lang.String
toString()
void
transactionCompleted(java.util.Collection<java.beans.PropertyChangeEvent> events, com.dassault_systemes.modeler.foundation.transaction.TransactionOptions options)
Notifies that transaction is completed and provides changes done in the transaction.void
transactionStarted(com.dassault_systemes.modeler.foundation.transaction.TransactionOptions options)
Invoked when transaction is started.
-
-
-
Constructor Detail
-
TransactionCommitListenerWrapper
public TransactionCommitListenerWrapper(TransactionCommitListener listener)
-
-
Method Detail
-
transactionStarted
public void transactionStarted(com.dassault_systemes.modeler.foundation.transaction.TransactionOptions options)
Description copied from interface:com.dassault_systemes.modeler.foundation.transaction.TransactionListener
Invoked when transaction is started.- Specified by:
transactionStarted
in interfacecom.dassault_systemes.modeler.foundation.transaction.TransactionListener
-
transactionCompleted
public void transactionCompleted(java.util.Collection<java.beans.PropertyChangeEvent> events, com.dassault_systemes.modeler.foundation.transaction.TransactionOptions options)
Description copied from interface:com.dassault_systemes.modeler.foundation.transaction.TransactionListener
Notifies that transaction is completed and provides changes done in the transaction. Listener can modify model.- Specified by:
transactionCompleted
in interfacecom.dassault_systemes.modeler.foundation.transaction.TransactionListener
- Parameters:
events
- events recorded during transaction.
-
allTransactionsCompleted
public void allTransactionsCompleted(com.dassault_systemes.modeler.foundation.transaction.TransactionOptions options)
Description copied from interface:com.dassault_systemes.modeler.foundation.transaction.TransactionListener
Invoked when all transactions (master and nested) are completed.- Specified by:
allTransactionsCompleted
in interfacecom.dassault_systemes.modeler.foundation.transaction.TransactionListener
-
getListener
public TransactionCommitListener getListener()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-