public class ModelTransaction
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) org.apache.log4j.Logger |
LOG |
protected java.util.Map<Element,java.lang.String> |
mChangedElements
If no fire post commit changed elements are collected in this collection.
|
Constructor and Description |
---|
ModelTransaction(AbstractRepository repository,
com.nomagic.uml2.transaction.TransactionManagerImpl manager) |
Modifier and Type | Method and Description |
---|---|
void |
beforeChange() |
void |
changed(javax.jmi.reflect.RefObject object)
Handles model change event.
|
void |
commit() |
boolean |
isFirePostCommit()
Determines whether post commit events are fired
|
boolean |
isStarted() |
void |
modelChanged(java.beans.PropertyChangeEvent evt)
Handles model change event.
|
void |
setFirePostCommit(boolean firePostCommit) |
void |
setInvalidModelHandler(InvalidModelHandler handler) |
void |
setModelValidator(ModelValidator handler) |
void |
setModifiedElements(com.nomagic.uml2.ext.jmi.ModifiedElements modifiedElements) |
void |
start()
Starts transaction.
|
void |
startReadOnly() |
org.apache.log4j.Logger LOG
protected java.util.Map<Element,java.lang.String> mChangedElements
public ModelTransaction(AbstractRepository repository, com.nomagic.uml2.transaction.TransactionManagerImpl manager)
public void start()
public void commit() throws RollbackException
RollbackException
public void modelChanged(java.beans.PropertyChangeEvent evt)
evt
- eventpublic void changed(javax.jmi.reflect.RefObject object)
object
- objectpublic boolean isStarted()
public boolean isFirePostCommit()
true
if events are fired, false
otherwisepublic void setInvalidModelHandler(InvalidModelHandler handler)
public void setModelValidator(ModelValidator handler)
public void startReadOnly()
public void beforeChange()
public void setFirePostCommit(boolean firePostCommit)
public void setModifiedElements(com.nomagic.uml2.ext.jmi.ModifiedElements modifiedElements)