类 NoJtaPlatform

    • 构造器详细资料

      • NoJtaPlatform

        public NoJtaPlatform()
    • 方法详细资料

      • retrieveTransactionManager

        public javax.transaction.TransactionManager retrieveTransactionManager()
        从接口复制的说明: JtaPlatform
        Locate the TransactionManager
        指定者:
        retrieveTransactionManager 在接口中 JtaPlatform
        返回:
        The TransactionManager
      • retrieveUserTransaction

        public javax.transaction.UserTransaction retrieveUserTransaction()
        从接口复制的说明: JtaPlatform
        Locate the UserTransaction
        指定者:
        retrieveUserTransaction 在接口中 JtaPlatform
        返回:
        The UserTransaction
      • getTransactionIdentifier

        public Object getTransactionIdentifier​(javax.transaction.Transaction transaction)
        从接口复制的说明: JtaPlatform
        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.

        指定者:
        getTransactionIdentifier 在接口中 JtaPlatform
        参数:
        transaction - The transaction to be identified.
        返回:
        An appropriate identifier
      • registerSynchronization

        public void registerSynchronization​(javax.transaction.Synchronization synchronization)
        从接口复制的说明: JtaPlatform
        Register a JTA Synchronization in the means defined by the platform.
        指定者:
        registerSynchronization 在接口中 JtaPlatform
        参数:
        synchronization - The synchronization to register
      • canRegisterSynchronization

        public boolean canRegisterSynchronization()
        从接口复制的说明: JtaPlatform
        Can we currently register a Synchronization?
        指定者:
        canRegisterSynchronization 在接口中 JtaPlatform
        返回:
        True if registering a Synchronization is currently allowed; false otherwise.
      • getCurrentStatus

        public int getCurrentStatus()
                             throws javax.transaction.SystemException
        从接口复制的说明: JtaPlatform
        Obtain the current transaction status using whatever means is preferred for this platform
        指定者:
        getCurrentStatus 在接口中 JtaPlatform
        返回:
        The current status.
        抛出:
        javax.transaction.SystemException - Indicates a problem access the underlying status