Interface UserTransactionService

All Known Subinterfaces:
TransactionService
All Known Implementing Classes:
JTATransactionServiceImpl

public interface UserTransactionService
  • Method Details

    • executeInTransaction

      <T> T executeInTransaction(Callable<T> callable) throws Exception
      Execute the given callable inside a transaction.
      Parameters:
      callable -
      Returns:
      Throws:
      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.
      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.
    • registerBeforeCommitCallable

      void registerBeforeCommitCallable(Callable<Void> callable) throws STransactionNotFoundException
      Throws:
      STransactionNotFoundException
    • isTransactionActive

      boolean isTransactionActive()
    • hasMultipleResources

      Optional<Boolean> hasMultipleResources()