Package com.nomagic.uml2.transaction
Class ModelTransaction
- java.lang.Object
 - 
- com.nomagic.uml2.transaction.ModelTransaction
 
 
- 
public class ModelTransaction extends java.lang.ObjectOne Transaction, objects of this type can be reused. 
- 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbeforeChange()voidchanged(javax.jmi.reflect.RefObject object)Handles model change event.voidcommit()booleanisFirePostCommit()Determines whether post commit events are firedbooleanisStarted()voidmodelChanged(java.beans.PropertyChangeEvent evt)Handles model change event.voidsetFirePostCommit(boolean firePostCommit)voidsetInvalidModelHandler(InvalidModelHandler handler)voidsetModelValidator(ModelValidator handler)voidsetModifiedElements(ModifiedElements modifiedElements)voidstart()Starts transaction.voidstart(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
 
- 
changed
public void changed(javax.jmi.reflect.RefObject object)
Handles model change event.- Parameters:
 object- object
 
- 
isStarted
public boolean isStarted()
 
- 
isFirePostCommit
public boolean isFirePostCommit()
Determines whether post commit events are fired- Returns:
 trueif events are fired,falseotherwise
 
- 
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)
 
 - 
 
 -