接口 JtaTransactionAdapter
-
public interface JtaTransactionAdapterAdapter for abstracting the physical means of interacting with JTA transactions. JTA transactions can concretely be interacted with throughUserTransactionorTransactiondepending on environment and situation. This adapter hides this difference.- 作者:
- Steve Ebersole
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 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)
-
-
-
方法详细资料
-
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)
-
-