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 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 interface org.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 interface org.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 interface org.springframework.transaction.PlatformTransactionManager
      Throws:
      org.springframework.transaction.TransactionException