Class PortalTransactionManager
Object
org.springframework.transaction.support.AbstractPlatformTransactionManager
com.liferay.portal.spring.hibernate.PortalTransactionManager
- All Implemented Interfaces:
Serializable
,org.springframework.transaction.PlatformTransactionManager
,org.springframework.transaction.TransactionManager
public class PortalTransactionManager
extends org.springframework.transaction.support.AbstractPlatformTransactionManager
- Author:
- Shuyang Zhou
- See Also:
-
Field Summary
Fields inherited from class org.springframework.transaction.support.AbstractPlatformTransactionManager
logger, SYNCHRONIZATION_ALWAYS, SYNCHRONIZATION_NEVER, SYNCHRONIZATION_ON_ACTUAL_TRANSACTION
-
Constructor Summary
ConstructorsConstructorDescriptionPortalTransactionManager
(DataSource dataSource, org.hibernate.SessionFactory sessionFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
doBegin
(Object transactionObject, org.springframework.transaction.TransactionDefinition transactionDefinition) protected void
doCleanupAfterCompletion
(Object transactionObject) protected void
doCommit
(org.springframework.transaction.support.DefaultTransactionStatus defaultTransactionStatus) protected Object
protected void
protected void
doRollback
(org.springframework.transaction.support.DefaultTransactionStatus defaultTransactionStatus) protected void
doSetRollbackOnly
(org.springframework.transaction.support.DefaultTransactionStatus defaultTransactionStatus) protected Object
org.hibernate.SessionFactory
protected boolean
isExistingTransaction
(Object transactionObject) 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
-
Constructor Details
-
PortalTransactionManager
-
-
Method Details
-
getSessionFactory
public org.hibernate.SessionFactory getSessionFactory() -
doBegin
protected void doBegin(Object transactionObject, org.springframework.transaction.TransactionDefinition transactionDefinition) - Specified by:
doBegin
in classorg.springframework.transaction.support.AbstractPlatformTransactionManager
-
doCleanupAfterCompletion
- Overrides:
doCleanupAfterCompletion
in classorg.springframework.transaction.support.AbstractPlatformTransactionManager
-
doCommit
protected void doCommit(org.springframework.transaction.support.DefaultTransactionStatus defaultTransactionStatus) - Specified by:
doCommit
in classorg.springframework.transaction.support.AbstractPlatformTransactionManager
-
doGetTransaction
- Specified by:
doGetTransaction
in classorg.springframework.transaction.support.AbstractPlatformTransactionManager
-
doResume
- Overrides:
doResume
in classorg.springframework.transaction.support.AbstractPlatformTransactionManager
-
doRollback
protected void doRollback(org.springframework.transaction.support.DefaultTransactionStatus defaultTransactionStatus) - Specified by:
doRollback
in classorg.springframework.transaction.support.AbstractPlatformTransactionManager
-
doSetRollbackOnly
protected void doSetRollbackOnly(org.springframework.transaction.support.DefaultTransactionStatus defaultTransactionStatus) - Overrides:
doSetRollbackOnly
in classorg.springframework.transaction.support.AbstractPlatformTransactionManager
-
doSuspend
- Overrides:
doSuspend
in classorg.springframework.transaction.support.AbstractPlatformTransactionManager
-
isExistingTransaction
- Overrides:
isExistingTransaction
in classorg.springframework.transaction.support.AbstractPlatformTransactionManager
-