Class NoopTransactionManager

  • All Implemented Interfaces:
    org.springframework.transaction.PlatformTransactionManager, org.springframework.transaction.TransactionManager

    public class NoopTransactionManager
    extends Object
    implements org.springframework.transaction.PlatformTransactionManager
    Since:
    5.6
    • Constructor Detail

      • NoopTransactionManager

        public NoopTransactionManager()
    • Method Detail

      • getTransaction

        public org.springframework.transaction.TransactionStatus getTransaction​(org.springframework.transaction.TransactionDefinition definition)
                                                                         throws org.springframework.transaction.TransactionException
        Specified by:
        getTransaction in interface org.springframework.transaction.PlatformTransactionManager
        Throws:
        org.springframework.transaction.TransactionException
      • commit

        public void commit​(org.springframework.transaction.TransactionStatus status)
                    throws org.springframework.transaction.TransactionException
        Specified by:
        commit in interface org.springframework.transaction.PlatformTransactionManager
        Throws:
        org.springframework.transaction.TransactionException
      • rollback

        public void rollback​(org.springframework.transaction.TransactionStatus status)
                      throws org.springframework.transaction.TransactionException
        Specified by:
        rollback in interface org.springframework.transaction.PlatformTransactionManager
        Throws:
        org.springframework.transaction.TransactionException