Interface UserTransactionService

    • Method Detail

      • executeInTransaction

        <T> T executeInTransaction​(java.util.concurrent.Callable<T> callable)
                            throws java.lang.Exception
        Execute the given callable inside a transaction.
        Parameters:
        callable -
        Returns:
        Throws:
        java.lang.Exception
      • registerBonitaSynchronization

        void registerBonitaSynchronization​(javax.transaction.Synchronization txSync)
                                    throws STransactionNotFoundException
        Register a synchronization object for the transaction currently associated with the target object. The transaction manager invokes the beforeCompletion method prior to starting the two-phase transaction commit process. After the transaction is completed, the transaction manager invokes the afterCompletion method.
        Parameters:
        txSync - The Synchronization object for the transaction associated with the target object.
        Throws:
        RollbackException - Thrown to indicate that the transaction has been marked for rollback only.
        java.lang.IllegalStateException - Thrown if the transaction in the target object is in the prepared state or the transaction is inactive.
        STransactionNotFoundException - Thrown if the transaction manager encounters an unexpected error condition.
      • isTransactionActive

        boolean isTransactionActive()
      • hasMultipleResources

        java.util.Optional<java.lang.Boolean> hasMultipleResources()