Interface UserTransactionService
- All Known Subinterfaces:
TransactionService
- All Known Implementing Classes:
JTATransactionServiceImpl
public interface UserTransactionService
-
Method Summary
Modifier and TypeMethodDescription<T> TexecuteInTransaction(Callable<T> callable) Execute the given callable inside a transaction.booleanvoidregisterBeforeCommitCallable(Callable<Void> callable) voidregisterBonitaSynchronization(javax.transaction.Synchronization txSync) Register a synchronization object for the transaction currently associated with the target object.
-
Method Details
-
executeInTransaction
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
- Throws:
STransactionNotFoundException
-
isTransactionActive
boolean isTransactionActive() -
hasMultipleResources
-