Class PortletTransactionManager
Object
com.liferay.portal.spring.hibernate.PortletTransactionManager
- All Implemented Interfaces:
org.springframework.transaction.PlatformTransactionManager
,org.springframework.transaction.TransactionManager
public class PortletTransactionManager
extends Object
implements org.springframework.transaction.PlatformTransactionManager
- Author:
- Shuyang Zhou
-
Constructor Summary
ConstructorsConstructorDescriptionPortletTransactionManager
(PortalTransactionManager portalTransactionManager, Supplier<org.hibernate.engine.spi.SessionFactoryImplementor> portletSessionFactoryImplementorSupplier) PortletTransactionManager
(PortalTransactionManager portalTransactionManager, org.hibernate.engine.spi.SessionFactoryImplementor sessionFactoryImplementor) -
Method Summary
Modifier and TypeMethodDescriptionvoid
commit
(org.springframework.transaction.TransactionStatus transactionStatus) org.hibernate.SessionFactory
org.springframework.transaction.TransactionStatus
getTransaction
(org.springframework.transaction.TransactionDefinition transactionDefinition) void
rollback
(org.springframework.transaction.TransactionStatus transactionStatus)
-
Constructor Details
-
PortletTransactionManager
public PortletTransactionManager(PortalTransactionManager portalTransactionManager, org.hibernate.engine.spi.SessionFactoryImplementor sessionFactoryImplementor) -
PortletTransactionManager
public PortletTransactionManager(PortalTransactionManager portalTransactionManager, Supplier<org.hibernate.engine.spi.SessionFactoryImplementor> portletSessionFactoryImplementorSupplier)
-
-
Method Details
-
commit
public void commit(org.springframework.transaction.TransactionStatus transactionStatus) throws org.springframework.transaction.TransactionException - Specified by:
commit
in interfaceorg.springframework.transaction.PlatformTransactionManager
- Throws:
org.springframework.transaction.TransactionException
-
getPortletSessionFactory
public org.hibernate.SessionFactory getPortletSessionFactory() -
getTransaction
public org.springframework.transaction.TransactionStatus getTransaction(org.springframework.transaction.TransactionDefinition transactionDefinition) throws org.springframework.transaction.TransactionException - Specified by:
getTransaction
in interfaceorg.springframework.transaction.PlatformTransactionManager
- Throws:
org.springframework.transaction.TransactionException
-
rollback
public void rollback(org.springframework.transaction.TransactionStatus transactionStatus) throws org.springframework.transaction.TransactionException - Specified by:
rollback
in interfaceorg.springframework.transaction.PlatformTransactionManager
- Throws:
org.springframework.transaction.TransactionException
-