org.springframework.orm.hibernate
Class LocalDataSourceConnectionProvider
- public class LocalDataSourceConnectionProvider
- implements ConnectionProvider
Hibernate connection provider for local DataSource instances
in an application context. This provider will be used if
LocalSessionFactoryBean's "dataSource" property is set.
- Author:
- Juergen Hoeller
- Since: 11.07.2003
- See Also: LocalSessionFactoryBean.setDataSource(javax.sql.DataSource)
close
public void close()
closeConnection
public void closeConnection(Connection conn)
throws java.sql.SQLException
configure
public void configure(Properties props)
throws HibernateException
getConnection
public Connection getConnection()
throws java.sql.SQLException
isStatementCache
public boolean isStatementCache()
- Only used in Hibernate 2.0's ConnectionProvider.
to Class java.lang.ThreadLocal- This will hold the DataSource to use for the currently configured
Hibernate SessionFactory. It will be set just before initialization
of the respective SessionFactory, and reset immediately afterwards.
to Class javax.sql.DataSource