Class TransactionManagers
java.lang.Object
com.dassault_systemes.modeler.foundation.transaction.TransactionManagers
Utility methods for obtaining
transaction managers.
This class provides Open API access to the transaction manager associated
with a ModelElementProject.
Example:
TransactionManager transactionManager = TransactionManagers.getTransactionManager(project);
-
Method Summary
Modifier and TypeMethodDescriptionstatic TransactionManagergetTransactionManager(ModelElementProject project) Returns the transaction manager associated with the given project.
-
Method Details
-
getTransactionManager
Returns the transaction manager associated with the given project.- Parameters:
project- the project for which to obtain the transaction manager- Returns:
- the transaction manager associated with the project
- Throws:
IllegalStateException- if the model element repository cannot be found in the projectIllegalStateException- if the transaction manager cannot be found for the project repository
-