Class ConfluenceHibernateTransactionManager
- java.lang.Object
-
- org.springframework.transaction.support.AbstractPlatformTransactionManager
-
- org.springframework.orm.hibernate5.HibernateTransactionManager
-
- com.atlassian.confluence.impl.hibernate.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
-
-
Constructor Summary
Constructors Constructor Description ConfluenceHibernateTransactionManager()
-
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
-
-
-
-
Method Detail
-
doBegin
protected void doBegin(Object transaction, org.springframework.transaction.TransactionDefinition txDef)
- Overrides:
doBegin
in classorg.springframework.orm.hibernate5.HibernateTransactionManager
-
doCleanupAfterCompletion
protected void doCleanupAfterCompletion(Object transaction)
- Overrides:
doCleanupAfterCompletion
in classorg.springframework.orm.hibernate5.HibernateTransactionManager
-
doCommit
protected void doCommit(org.springframework.transaction.support.DefaultTransactionStatus status)
- Overrides:
doCommit
in classorg.springframework.orm.hibernate5.HibernateTransactionManager
-
doRollback
protected void doRollback(org.springframework.transaction.support.DefaultTransactionStatus status)
- Overrides:
doRollback
in classorg.springframework.orm.hibernate5.HibernateTransactionManager
-
-