Package fr.paris.lutece.util.sql
Class TransactionSynchronizationManager
java.lang.Object
fr.paris.lutece.util.sql.TransactionSynchronizationManager
- All Implemented Interfaces:
ITransactionSynchronizationManager
@ApplicationScoped
public class TransactionSynchronizationManager
extends Object
implements ITransactionSynchronizationManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermines if a managed transaction is currently activeRegisters a synchronization to the current managed transaction
-
Constructor Details
-
TransactionSynchronizationManager
public TransactionSynchronizationManager()
-
-
Method Details
-
isSynchronizationActive
public boolean isSynchronizationActive()Determines if a managed transaction is currently active- Specified by:
isSynchronizationActivein interfaceITransactionSynchronizationManager- Returns:
- The synchronization availability
-
registerSynchronization
public TransactionSynchronizationContext registerSynchronization(TransactionSynchronizationContext context) throws SQLException Registers a synchronization to the current managed transaction- Specified by:
registerSynchronizationin interfaceITransactionSynchronizationManager- Parameters:
context- The synchronization context- Throws:
SQLException
-