Class TransactionManagers

java.lang.Object
com.dassault_systemes.modeler.foundation.transaction.TransactionManagers

@OpenApiAll public final class TransactionManagers extends Object
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 Details

    • getTransactionManager

      public static TransactionManager getTransactionManager(ModelElementProject project)
      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 project
      IllegalStateException - if the transaction manager cannot be found for the project repository