Class NoJtaPlatform

    • Constructor Detail

      • NoJtaPlatform

        public NoJtaPlatform()
    • Method Detail

      • retrieveTransactionManager

        public jakarta.transaction.TransactionManager retrieveTransactionManager()
        Description copied from interface: JtaPlatform
        Locate the TransactionManager.
        Specified by:
        retrieveTransactionManager in interface JtaPlatform
        Returns:
        The TransactionManager
      • getTransactionIdentifier

        public Object getTransactionIdentifier​(jakarta.transaction.Transaction transaction)
        Description copied from interface: 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.

        Specified by:
        getTransactionIdentifier in interface JtaPlatform
        Parameters:
        transaction - The transaction to be identified.
        Returns:
        An appropriate identifier
      • registerSynchronization

        public void registerSynchronization​(jakarta.transaction.Synchronization synchronization)
        Description copied from interface: JtaPlatform
        Register a JTA Synchronization in the means defined by the platform.
        Specified by:
        registerSynchronization in interface JtaPlatform
        Parameters:
        synchronization - The synchronization to register
      • canRegisterSynchronization

        public boolean canRegisterSynchronization()
        Description copied from interface: JtaPlatform
        Can we currently register a Synchronization?
        Specified by:
        canRegisterSynchronization in interface JtaPlatform
        Returns:
        True if registering a Synchronization is currently allowed; false otherwise.
      • getCurrentStatus

        public int getCurrentStatus()
                             throws jakarta.transaction.SystemException
        Description copied from interface: JtaPlatform
        Obtain the current transaction status using whatever means is preferred for this platform
        Specified by:
        getCurrentStatus in interface JtaPlatform
        Returns:
        The current status.
        Throws:
        jakarta.transaction.SystemException - Indicates a problem access the underlying status