接口 JtaPlatform

    • 方法详细资料

      • retrieveTransactionManager

        javax.transaction.TransactionManager retrieveTransactionManager()
        Locate the TransactionManager
        返回:
        The TransactionManager
      • retrieveUserTransaction

        javax.transaction.UserTransaction retrieveUserTransaction()
        Locate the UserTransaction
        返回:
        The UserTransaction
      • getTransactionIdentifier

        Object getTransactionIdentifier​(javax.transaction.Transaction transaction)
        Determine an identifier for the given transaction appropriate for use in caching/lookup usages.

        Generally speaking the transaction itself will be returned here. This method was added specifically for use in WebSphere and other unfriendly Java EE containers.

        参数:
        transaction - The transaction to be identified.
        返回:
        An appropriate identifier
      • canRegisterSynchronization

        boolean canRegisterSynchronization()
        Can we currently register a Synchronization?
        返回:
        True if registering a Synchronization is currently allowed; false otherwise.
      • registerSynchronization

        void registerSynchronization​(javax.transaction.Synchronization synchronization)
        Register a JTA Synchronization in the means defined by the platform.
        参数:
        synchronization - The synchronization to register
      • getCurrentStatus

        int getCurrentStatus()
                      throws javax.transaction.SystemException
        Obtain the current transaction status using whatever means is preferred for this platform
        返回:
        The current status.
        抛出:
        javax.transaction.SystemException - Indicates a problem access the underlying status