Save This Page
Home » spring-framework-2.5.6-with-dependencies » org.springframework » orm » hibernate3 » [javadoc | source]
org.springframework.orm.hibernate3
public class: TransactionAwareDataSourceConnectionProvider [javadoc | source]
java.lang.Object
   org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider
      org.springframework.orm.hibernate3.TransactionAwareDataSourceConnectionProvider

All Implemented Interfaces:
    org.hibernate.connection.ConnectionProvider

Subclass of LocalDataSourceConnectionProvider that returns a transaction-aware proxy for the exposed DataSource. Used if LocalSessionFactoryBean's "useTransactionAwareDataSource" flag is on.
Method from org.springframework.orm.hibernate3.TransactionAwareDataSourceConnectionProvider Summary:
getDataSourceToUse,   supportsAggressiveRelease
Methods from org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider:
close,   closeConnection,   configure,   getConnection,   getDataSource,   getDataSourceToUse,   supportsAggressiveRelease
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.springframework.orm.hibernate3.TransactionAwareDataSourceConnectionProvider Detail:
 protected DataSource getDataSourceToUse(DataSource originalDataSource) 
    Return a TransactionAwareDataSourceProxy for the given DataSource, provided that it isn't a TransactionAwareDataSourceProxy already.
 public boolean supportsAggressiveRelease() 
    This implementation returns true: We can guarantee to receive the same Connection within a transaction, as we are exposing a TransactionAwareDataSourceProxy.