public class DataSourceConnectionProvider extends Object implements org.hibernate.connection.ConnectionProvider
Hibernate connection provider for local DataSource instances.
Based on Spring's org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider
.
Constructor and Description |
---|
DataSourceConnectionProvider() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
closeConnection(Connection connection) |
void |
configure(Properties properties) |
Connection |
getConnection() |
DataSource |
getDataSource() |
boolean |
supportsAggressiveRelease() |
public DataSource getDataSource()
public void configure(Properties properties) throws org.hibernate.HibernateException
configure
in interface org.hibernate.connection.ConnectionProvider
org.hibernate.HibernateException
public Connection getConnection() throws SQLException
getConnection
in interface org.hibernate.connection.ConnectionProvider
SQLException
public void closeConnection(Connection connection) throws SQLException
closeConnection
in interface org.hibernate.connection.ConnectionProvider
SQLException
public void close() throws org.hibernate.HibernateException
close
in interface org.hibernate.connection.ConnectionProvider
org.hibernate.HibernateException
public boolean supportsAggressiveRelease()
supportsAggressiveRelease
in interface org.hibernate.connection.ConnectionProvider