Subclass of LocalDataSourceConnectionProvider that returns a
transaction-aware proxy for the exposed DataSource. Used if
LocalSessionFactoryBean's "useTransactionAwareDataSource" flag is on.
getDataSourceToUse(DataSource originalDataSource)
Return a TransactionAwareDataSourceProxy for the given DataSource,
provided that it isn't a TransactionAwareDataSourceProxy already.
boolean
supportsAggressiveRelease()
This implementation returns true: We can guarantee
to receive the same Connection within a transaction, as we are
exposing a TransactionAwareDataSourceProxy.
This implementation returns true: We can guarantee
to receive the same Connection within a transaction, as we are
exposing a TransactionAwareDataSourceProxy.