类 TransactionAwareDataSourceConnectionProvider
- java.lang.Object
- org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider
- org.springframework.orm.hibernate3.TransactionAwareDataSourceConnectionProvider
- 所有已实现的接口:
org.hibernate.connection.ConnectionProvider
@Deprecated public class TransactionAwareDataSourceConnectionProvider extends LocalDataSourceConnectionProvider
已过时。as of Spring 4.3, in favor of Hibernate 4.x/5.xSubclass of LocalDataSourceConnectionProvider that returns a transaction-aware proxy for the exposed DataSource. Used if LocalSessionFactoryBean's "useTransactionAwareDataSource" flag is on.- 从以下版本开始:
- 1.2
- 作者:
- Juergen Hoeller
- 另请参阅:
AbstractSessionFactoryBean.setUseTransactionAwareDataSource(boolean)
构造器概要
构造器 构造器 说明 TransactionAwareDataSourceConnectionProvider()
已过时。
方法概要
所有方法 实例方法 具体方法 已过时的方法 修饰符和类型 方法 说明 protected DataSource
getDataSourceToUse(DataSource originalDataSource)
已过时。Return a TransactionAwareDataSourceProxy for the given DataSource, provided that it isn't a TransactionAwareDataSourceProxy already.boolean
supportsAggressiveRelease()
已过时。This implementation returnstrue
: We can guarantee to receive the same Connection within a transaction, as we are exposing a TransactionAwareDataSourceProxy.从类继承的方法 org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider
close, closeConnection, configure, getConnection, getDataSource
构造器详细资料
TransactionAwareDataSourceConnectionProvider
public TransactionAwareDataSourceConnectionProvider()
已过时。
方法详细资料
getDataSourceToUse
protected DataSource getDataSourceToUse(DataSource originalDataSource)
已过时。Return a TransactionAwareDataSourceProxy for the given DataSource, provided that it isn't a TransactionAwareDataSourceProxy already.- 覆盖:
getDataSourceToUse
在类中LocalDataSourceConnectionProvider
- 参数:
originalDataSource
- the DataSource as configured by the user on LocalSessionFactoryBean- 返回:
- the DataSource to actually retrieve Connections from (potentially wrapped)
- 另请参阅:
AbstractSessionFactoryBean.setDataSource(javax.sql.DataSource)
supportsAggressiveRelease
public boolean supportsAggressiveRelease()
已过时。This implementation returnstrue
: We can guarantee to receive the same Connection within a transaction, as we are exposing a TransactionAwareDataSourceProxy.- 指定者:
supportsAggressiveRelease
在接口中org.hibernate.connection.ConnectionProvider
- 覆盖:
supportsAggressiveRelease
在类中LocalDataSourceConnectionProvider