接口 JtaTransactionAdapter

  • 所有已知实现类:
    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.

    作者:
    Steve Ebersole
    • 方法详细资料

      • 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
      • markRollbackOnly

        void markRollbackOnly()
      • setTimeOut

        void setTimeOut​(int seconds)