Class ConfluenceHibernateTransactionManager

  • All Implemented Interfaces:
    Serializable, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.InitializingBean, org.springframework.transaction.PlatformTransactionManager, org.springframework.transaction.support.ResourceTransactionManager, org.springframework.transaction.TransactionManager

    public class ConfluenceHibernateTransactionManager
    extends org.springframework.orm.hibernate5.HibernateTransactionManager
    This class keeps track of transaction state and logs it in case of rollback.

    In addition to the outmost transaction, information about all inner transactions is also kept.

    Since:
    6.0
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class org.springframework.transaction.support.AbstractPlatformTransactionManager

        logger, SYNCHRONIZATION_ALWAYS, SYNCHRONIZATION_NEVER, SYNCHRONIZATION_ON_ACTUAL_TRANSACTION
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void doBegin​(Object transaction, org.springframework.transaction.TransactionDefinition txDef)  
      protected void doCleanupAfterCompletion​(Object transaction)  
      protected void doCommit​(org.springframework.transaction.support.DefaultTransactionStatus status)  
      protected void doRollback​(org.springframework.transaction.support.DefaultTransactionStatus status)  
      • Methods inherited from class org.springframework.orm.hibernate5.HibernateTransactionManager

        afterPropertiesSet, convertHibernateAccessException, disconnectOnCompletion, doGetTransaction, doResume, doSetRollbackOnly, doSuspend, getDataSource, getEntityInterceptor, getResourceFactory, getSessionFactory, isExistingTransaction, obtainSessionFactory, setAllowResultAccessAfterCompletion, setAutodetectDataSource, setBeanFactory, setDataSource, setEntityInterceptor, setEntityInterceptorBeanName, setHibernateManagedSession, setPrepareConnection, setSessionFactory, setSessionInitializer
      • Methods inherited from class org.springframework.transaction.support.AbstractPlatformTransactionManager

        commit, determineTimeout, getDefaultTimeout, getTransaction, getTransactionSynchronization, invokeAfterCompletion, isFailEarlyOnGlobalRollbackOnly, isGlobalRollbackOnParticipationFailure, isNestedTransactionAllowed, isRollbackOnCommitFailure, isValidateExistingTransaction, newTransactionStatus, prepareForCommit, prepareSynchronization, prepareTransactionStatus, registerAfterCompletionWithExistingTransaction, resume, rollback, setDefaultTimeout, setFailEarlyOnGlobalRollbackOnly, setGlobalRollbackOnParticipationFailure, setNestedTransactionAllowed, setRollbackOnCommitFailure, setTransactionSynchronization, setTransactionSynchronizationName, setValidateExistingTransaction, shouldCommitOnGlobalRollbackOnly, suspend, triggerBeforeCommit, triggerBeforeCompletion, useSavepointForNestedTransaction
      • Methods inherited from interface org.springframework.transaction.PlatformTransactionManager

        commit, getTransaction, rollback
    • Constructor Detail

      • ConfluenceHibernateTransactionManager

        public ConfluenceHibernateTransactionManager()
    • Method Detail

      • doBegin

        protected void doBegin​(Object transaction,
                               org.springframework.transaction.TransactionDefinition txDef)
        Overrides:
        doBegin in class org.springframework.orm.hibernate5.HibernateTransactionManager
      • doCleanupAfterCompletion

        protected void doCleanupAfterCompletion​(Object transaction)
        Overrides:
        doCleanupAfterCompletion in class org.springframework.orm.hibernate5.HibernateTransactionManager
      • doCommit

        protected void doCommit​(org.springframework.transaction.support.DefaultTransactionStatus status)
        Overrides:
        doCommit in class org.springframework.orm.hibernate5.HibernateTransactionManager
      • doRollback

        protected void doRollback​(org.springframework.transaction.support.DefaultTransactionStatus status)
        Overrides:
        doRollback in class org.springframework.orm.hibernate5.HibernateTransactionManager