Package com.nomagic.uml2.transaction
Class ModelTransaction
- java.lang.Object
-
- com.nomagic.uml2.transaction.ModelTransaction
-
public class ModelTransaction extends java.lang.Object
One Transaction, objects of this type can be reused.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
beforeChange()
void
commit()
boolean
isFirePostCommit()
Determines whether post commit events are firedboolean
isStarted()
boolean
isValidateModel()
void
modelChanged(java.beans.PropertyChangeEvent evt)
Handles model change event.void
setFirePostCommit(boolean firePostCommit)
void
setInvalidModelHandler(InvalidModelHandler handler)
void
setModelValidator(ModelValidator handler)
void
setModifiedElements(ModifiedElements modifiedElements)
void
start()
Starts transaction.void
start(boolean readOnly, boolean validateModel)
-
-
-
Method Detail
-
start
public void start()
Starts transaction. After transaction started events will be recorded and analyzed.
-
start
public void start(boolean readOnly, boolean validateModel)
-
commit
public void commit() throws RollbackException
- Throws:
RollbackException
-
modelChanged
public void modelChanged(java.beans.PropertyChangeEvent evt)
Handles model change event.- Parameters:
evt
- event
-
isStarted
public boolean isStarted()
-
isFirePostCommit
public boolean isFirePostCommit()
Determines whether post commit events are fired- Returns:
true
if events are fired,false
otherwise
-
isValidateModel
public boolean isValidateModel()
-
setInvalidModelHandler
public void setInvalidModelHandler(InvalidModelHandler handler)
-
setModelValidator
public void setModelValidator(ModelValidator handler)
-
beforeChange
public void beforeChange()
-
setFirePostCommit
public void setFirePostCommit(boolean firePostCommit)
-
setModifiedElements
public void setModifiedElements(ModifiedElements modifiedElements)
-
-