Class LuteceTransactionManager

  • All Implemented Interfaces:
    org.springframework.transaction.PlatformTransactionManager, org.springframework.transaction.TransactionManager

    public class LuteceTransactionManager
    extends java.lang.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.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void commit​(org.springframework.transaction.TransactionStatus status)
      java.lang.String getPluginName()
      Gets the plugin name
      org.springframework.transaction.TransactionStatus getTransaction​(org.springframework.transaction.TransactionDefinition definition)
      void rollback​(org.springframework.transaction.TransactionStatus status)
      void setPluginName​(java.lang.String strPluginName)
      Sets the plugin name
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LuteceTransactionManager

        public LuteceTransactionManager()
    • Method Detail

      • getPluginName

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

        public void setPluginName​(java.lang.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