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.ConnectionProviderorg.hibernate.HibernateExceptionpublic Connection getConnection() throws SQLException
getConnection in interface org.hibernate.connection.ConnectionProviderSQLExceptionpublic void closeConnection(Connection connection) throws SQLException
closeConnection in interface org.hibernate.connection.ConnectionProviderSQLExceptionpublic void close()
throws org.hibernate.HibernateException
close in interface org.hibernate.connection.ConnectionProviderorg.hibernate.HibernateExceptionpublic boolean supportsAggressiveRelease()
supportsAggressiveRelease in interface org.hibernate.connection.ConnectionProvider