fr.paris.lutece.portal.service.database
Class LuteceTransactionManager

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

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 Summary
LuteceTransactionManager()
           
 
Method Summary
 void commit(org.springframework.transaction.TransactionStatus status)
          
 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(String strPluginName)
          Sets the plugin name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LuteceTransactionManager

public LuteceTransactionManager()
Method Detail

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)
                                                                 throws org.springframework.transaction.TransactionException

Specified by:
getTransaction in interface org.springframework.transaction.PlatformTransactionManager
Throws:
org.springframework.transaction.TransactionException

commit

public void commit(org.springframework.transaction.TransactionStatus status)
            throws org.springframework.transaction.TransactionException

Specified by:
commit in interface org.springframework.transaction.PlatformTransactionManager
Throws:
org.springframework.transaction.TransactionException

rollback

public void rollback(org.springframework.transaction.TransactionStatus status)
              throws org.springframework.transaction.TransactionException

Specified by:
rollback in interface org.springframework.transaction.PlatformTransactionManager
Throws:
org.springframework.transaction.TransactionException


Copyright © 2014 Mairie de Paris. All rights reserved.