Package com.nomagic.uml2.transaction
Class ModelTransaction
java.lang.Object
com.nomagic.uml2.transaction.ModelTransaction
One Transaction, objects of this type can be reused.
-
Method Summary
Modifier and TypeMethodDescriptionvoidvoidcommit()booleanDetermines whether post commit events are firedbooleanbooleanvoidHandles model change event.voidsetFirePostCommit(boolean firePostCommit) voidvoidsetModelValidator(ModelValidator handler) voidsetModifiedElements(com.nomagic.uml2.ext.jmi.ModifiedElements modifiedElements) voidstart()Starts transaction.voidstart(boolean readOnly, boolean validateModel)
-
Method Details
-
start
public void start()Starts transaction. After transaction started events will be recorded and analyzed. -
start
public void start(boolean readOnly, boolean validateModel) -
commit
- Throws:
RollbackException
-
modelChanged
Handles model change event.- Parameters:
evt- event
-
isStarted
public boolean isStarted() -
isFirePostCommit
public boolean isFirePostCommit()Determines whether post commit events are fired- Returns:
trueif events are fired,falseotherwise
-
isValidateModel
public boolean isValidateModel() -
setInvalidModelHandler
-
setModelValidator
-
beforeChange
public void beforeChange() -
setFirePostCommit
public void setFirePostCommit(boolean firePostCommit) -
setModifiedElements
public void setModifiedElements(com.nomagic.uml2.ext.jmi.ModifiedElements modifiedElements)
-