Interface JtaTransactionAdapter
-
- All Known Implementing Classes:
JtaTransactionAdapterTransactionManagerImpl,JtaTransactionAdapterUserTransactionImpl
public interface JtaTransactionAdapterAdapter for abstracting the physical means of interacting with JTA transactions.JTA transactions can concretely be interacted with through
UserTransactionorTransactiondepending on environment and situation. This adapter hides this difference.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidbegin()Call begin on the underlying transaction objectvoidcommit()Call commit on the underlying transaction objectTransactionStatusgetStatus()voidmarkRollbackOnly()voidrollback()Call rollback on the underlying transaction objectvoidsetTimeOut(int seconds)
-
-
-
Method Detail
-
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)
-
-