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 TypeMethodDescriptionvoidcommit(org.springframework.transaction.TransactionStatus transactionStatus) org.hibernate.SessionFactoryorg.springframework.transaction.TransactionStatusgetTransaction(org.springframework.transaction.TransactionDefinition transactionDefinition) voidrollback(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:
commitin 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:
getTransactionin 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:
rollbackin interfaceorg.springframework.transaction.PlatformTransactionManager- Throws:
org.springframework.transaction.TransactionException
-