| java.lang.Object | |
| ↳ | org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider |
Known Direct Subclasses
|
Hibernate connection provider for local DataSource instances in an application context. This provider will be used if LocalSessionFactoryBean's "dataSource" property is set without a Hibernate TransactionManagerLookup.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
This implementation does nothing:
We're dealing with an externally managed DataSource.
| |||||||||||
This implementation simply calls
Connection.close. | |||||||||||
This implementation delegates to the underlying DataSource.
| |||||||||||
Return the DataSource that this ConnectionProvider wraps.
| |||||||||||
This implementation returns
false: We cannot guarantee
to receive the same Connection within a transaction, not even when
dealing with a JNDI DataSource. | |||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Return the DataSource to use for retrieving Connections.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
This implementation does nothing: We're dealing with an externally managed DataSource.
This implementation returns false: We cannot guarantee
to receive the same Connection within a transaction, not even when
dealing with a JNDI DataSource.
Return the DataSource to use for retrieving Connections.
This implementation returns the passed-in DataSource as-is.
| originalDataSource | the DataSource as configured by the user on LocalSessionFactoryBean |
|---|