| |
|
| java.lang.Object com.metaboss.sdlctools.models.impl.MDRPreChangeListenerImplBase com.metaboss.sdlctools.models.impl.RepositoryTransactionListenerImpl
RepositoryTransactionListenerImpl | public class RepositoryTransactionListenerImpl extends MDRPreChangeListenerImplBase (Code) | | Implementation of the MDRPreChangeListener supporting MetaBoss's Model repository.
This helper class implements MDRPreChangeListener, which keeps track of
transactions executed on the repository. It helps to manupulate attachments and
to close transactions properly
|
Method Summary | |
public void | change(MDRChangeEvent pEvent) This method gets called after a repository change is performed. | public void | changeCancelled(MDRChangeEvent pEvent) This method gets called if a planned change (which was already announced
by calling
RepositoryTransactionListenerImpl.plannedChange was cancelled (e.g. | public void | plannedChange(MDRChangeEvent pEvent) This method gets called when a repository change is planned to occur.
Any operation that performs a change in MDR has to fire this notification
synchronously on each registered pre-change listener before the change is performed.
Any run-time exception thrown by the implementation of this method should
not affect the events dispatching (i.e. |
change | public void change(MDRChangeEvent pEvent)(Code) | | This method gets called after a repository change is performed. This method
is called asynchronously.
If a listener implements
MDRPreChangeListener which is a descedant
of this interface, the event object passed to this method must be the same
instance as the event object previously passed to the corresponding
MDRPreChangeListener.plannedChange method call of the listener.
Any run-time exception thrown by the implementation of this method should
not affect the events dispatching (i.e. it should be ignored by the event source).
Parameters: pEvent - Object describing the performed change. |
changeCancelled | public void changeCancelled(MDRChangeEvent pEvent)(Code) | | This method gets called if a planned change (which was already announced
by calling
RepositoryTransactionListenerImpl.plannedChange was cancelled (e.g. the operation that was
going to perform the change failed). This method is called synchronously by
the operation that tried to perform the change.
Any run-time exception thrown by the implementation of this method should
not affect the events dispatching (i.e. it should be ignored by the event source).
Parameters: pEvent - Object describing the cancelled change (has to be the same instanceas passed to the RepositoryTransactionListenerImpl.plannedChange method). |
plannedChange | public void plannedChange(MDRChangeEvent pEvent)(Code) | | This method gets called when a repository change is planned to occur.
Any operation that performs a change in MDR has to fire this notification
synchronously on each registered pre-change listener before the change is performed.
Any run-time exception thrown by the implementation of this method should
not affect the events dispatching (i.e. it should be ignored by the event source).
Parameters: pEvent - Object describing the planned change. |
|
|
|