Class TransactionAwareDataSource

java.lang.Object
com.ultikits.ultitools.interfaces.impl.data.TransactionAwareDataSource
All Implemented Interfaces:
Wrapper, CommonDataSource, DataSource

class TransactionAwareDataSource extends Object implements DataSource
A DataSource wrapper that integrates with TransactionManager.

When a transaction is active, returns the transaction's connection wrapped in a NonClosingConnectionProxy to prevent premature closing by QueryRunner. When no transaction is active, delegates to the underlying DataSource for normal auto-commit behavior.

Since:
6.2.0