Class AbstractJtaPlatform

    • Constructor Detail

      • AbstractJtaPlatform

        public AbstractJtaPlatform()
    • Method Detail

      • locateTransactionManager

        protected abstract jakarta.transaction.TransactionManager locateTransactionManager()
      • locateUserTransaction

        protected abstract jakarta.transaction.UserTransaction locateUserTransaction()
      • configure

        public void configure​(Map<String,​Object> configValues)
        Description copied from interface: Configurable
        Configure the service.
        Specified by:
        configure in interface Configurable
        Parameters:
        configValues - The configuration properties.
      • canCacheTransactionManagerByDefault

        protected boolean canCacheTransactionManagerByDefault()
      • canCacheUserTransactionByDefault

        protected boolean canCacheUserTransactionByDefault()
      • canCacheTransactionManager

        protected boolean canCacheTransactionManager()
      • canCacheUserTransaction

        protected boolean canCacheUserTransaction()
      • 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