Class LuteceTransactionManager

java.lang.Object
fr.paris.lutece.portal.service.database.LuteceTransactionManager
All Implemented Interfaces:
org.springframework.transaction.PlatformTransactionManager, org.springframework.transaction.TransactionManager

public class LuteceTransactionManager extends Object implements org.springframework.transaction.PlatformTransactionManager
Lutece transaction manager. This TM use Lutece's specific pool transaction manager with the class TransactionManager. It allow plugins to use multi plugin transactions, and nested transactions. Note that nested transactions does not create savepoints : if a nested transaction is roll backed, then the whole transaction is roll backed.
  • Constructor Details

    • LuteceTransactionManager

      public LuteceTransactionManager()
  • Method Details

    • getPluginName

      public String getPluginName()
      Gets the plugin name
      Returns:
      the plugin name
    • setPluginName

      public void setPluginName(String strPluginName)
      Sets the plugin name
      Parameters:
      strPluginName - the plugin name
    • getTransaction

      public org.springframework.transaction.TransactionStatus getTransaction(org.springframework.transaction.TransactionDefinition definition)
      Specified by:
      getTransaction in interface org.springframework.transaction.PlatformTransactionManager
    • commit

      public void commit(org.springframework.transaction.TransactionStatus status)
      Specified by:
      commit in interface org.springframework.transaction.PlatformTransactionManager
    • rollback

      public void rollback(org.springframework.transaction.TransactionStatus status)
      Specified by:
      rollback in interface org.springframework.transaction.PlatformTransactionManager