Interface JtaTransactionAdapter
- All Known Implementing Classes:
JtaTransactionAdapterTransactionManagerImpl,JtaTransactionAdapterUserTransactionImpl
public interface JtaTransactionAdapter
Adapter for abstracting the physical means of interacting with JTA transactions.
JTA transactions can concretely be interacted with through UserTransaction
or Transaction depending on environment and situation. This adapter hides
this difference.
-
Method Summary
Modifier and TypeMethodDescriptionvoidbegin()Call begin on the underlying transaction objectvoidcommit()Call commit on the underlying transaction objectvoidvoidrollback()Call rollback on the underlying transaction objectvoidsetTimeOut(int seconds)
-
Method Details
-
begin
void begin()Call begin on the underlying transaction object -
commit
void commit()Call commit on the underlying transaction object -
rollback
void rollback()Call rollback on the underlying transaction object -
getStatus
TransactionStatus getStatus() -
markRollbackOnly
void markRollbackOnly() -
setTimeOut
void setTimeOut(int seconds)
-