| java.lang.Object | ||
| ↳ | org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider | |
| ↳ | org.springframework.orm.hibernate3.TransactionAwareDataSourceConnectionProvider | |
Subclass of LocalDataSourceConnectionProvider that returns a transaction-aware proxy for the exposed DataSource. Used if LocalSessionFactoryBean's "useTransactionAwareDataSource" flag is on.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
This implementation returns
true: We can guarantee
to receive the same Connection within a transaction, as we are
exposing a TransactionAwareDataSourceProxy. | |||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Return a TransactionAwareDataSourceProxy for the given DataSource,
provided that it isn't a TransactionAwareDataSourceProxy already.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider
| |||||||||||
From class
java.lang.Object
| |||||||||||
This implementation returns true: We can guarantee
to receive the same Connection within a transaction, as we are
exposing a TransactionAwareDataSourceProxy.
Return a TransactionAwareDataSourceProxy for the given DataSource, provided that it isn't a TransactionAwareDataSourceProxy already.
| originalDataSource | the DataSource as configured by the user on LocalSessionFactoryBean |
|---|