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 throughUserTransaction
orTransaction
depending on environment and situation. This adapter hides this difference.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
begin()
Call begin on the underlying transaction objectvoid
commit()
Call commit on the underlying transaction objectTransactionStatus
getStatus()
void
markRollbackOnly()
void
rollback()
Call rollback on the underlying transaction objectvoid
setTimeOut(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)
-
-