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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcommit(org.springframework.transaction.TransactionStatus status) Gets the plugin nameorg.springframework.transaction.TransactionStatusgetTransaction(org.springframework.transaction.TransactionDefinition definition) voidrollback(org.springframework.transaction.TransactionStatus status) voidsetPluginName(String strPluginName) Sets the plugin name
-
Constructor Details
-
LuteceTransactionManager
public LuteceTransactionManager()
-
-
Method Details
-
getPluginName
Gets the plugin name- Returns:
- the plugin name
-
setPluginName
Sets the plugin name- Parameters:
strPluginName- the plugin name
-
getTransaction
public org.springframework.transaction.TransactionStatus getTransaction(org.springframework.transaction.TransactionDefinition definition) - Specified by:
getTransactionin interfaceorg.springframework.transaction.PlatformTransactionManager
-
commit
public void commit(org.springframework.transaction.TransactionStatus status) - Specified by:
commitin interfaceorg.springframework.transaction.PlatformTransactionManager
-
rollback
public void rollback(org.springframework.transaction.TransactionStatus status) - Specified by:
rollbackin interfaceorg.springframework.transaction.PlatformTransactionManager
-