Class NarayanaTransactionServices

    • Constructor Detail

    • Method Detail

      • isTransactionActive

        public boolean isTransactionActive()
        Returns true if the current Transaction has a status indicating that it is active.

        This method returns true if the current Transaction has a status equal to one of the following values:

        • Status.STATUS_ACTIVE
        • Status.STATUS_COMMITTING
        • Status.STATUS_MARKED_ROLLBACK
        • Status.STATUS_PREPARED
        • Status.STATUS_PREPARING
        • Status.STATUS_ROLLING_BACK
        Specified by:
        isTransactionActive in interface TransactionServices
        Returns:
        true if the current Transaction has a status indicating that it is active; false otherwise
        Throws:
        RuntimeException - if an invocation of the Transaction.getStatus() method resulted in a SystemException
        See Also:
        Status
      • registerSynchronization

        public void registerSynchronization​(javax.transaction.Synchronization synchronization)
        Registers the supplied Synchronization with the current Transaction.
        Specified by:
        registerSynchronization in interface TransactionServices
        Throws:
        RuntimeException - if an invocation of the TransactionManager.getTransaction() method resulted in a SystemException, or if an invocation of the Transaction.registerSynchronization(Synchronization) method resulted in either a SystemException or a RollbackException
        See Also:
        Transaction.registerSynchronization(Synchronization)
      • cleanup

        public void cleanup()
        Releases any internal resources acquired during the lifespan of this object.
        Specified by:
        cleanup in interface Service