public class DbcpTransactionRegistry
extends org.apache.commons.dbcp2.managed.TransactionRegistry
Constructor and Description |
---|
DbcpTransactionRegistry(TransactionManager transactionManager) |
DbcpTransactionRegistry(TransactionManager transactionManager,
TransactionSynchronizationRegistry transactionSynchronizationRegistry) |
Modifier and Type | Method and Description |
---|---|
TransactionContext |
getActiveTransactionContext()
Gets the active TransactionContext or null if not Transaction is active.
|
public DbcpTransactionRegistry(TransactionManager transactionManager)
public DbcpTransactionRegistry(TransactionManager transactionManager, TransactionSynchronizationRegistry transactionSynchronizationRegistry)
public TransactionContext getActiveTransactionContext() throws java.sql.SQLException
java.sql.SQLException
- Thrown when an error occurs while fetching the transaction.