public class HibernateConnectionProvider extends Object implements org.hibernate.connection.ConnectionProvider
DriverManagerConnectionProvider class
in order to be used inside an Eclipse based environment like Jaspersoft Studio.
This connection provider does NOT USE the DriverManager.
A rudimentary connection pool is implemented like in the original class.| Constructor and Description |
|---|
HibernateConnectionProvider() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
closeConnection(Connection conn) |
void |
configure(Properties props) |
Connection |
getConnection() |
boolean |
supportsAggressiveRelease() |
public void configure(Properties props) 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 conn) throws SQLException
closeConnection in interface org.hibernate.connection.ConnectionProviderSQLExceptionpublic void close()
close in interface org.hibernate.connection.ConnectionProviderpublic boolean supportsAggressiveRelease()
supportsAggressiveRelease in interface org.hibernate.connection.ConnectionProviderCopyright © 2017. All rights reserved.