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.ConnectionProvider
org.hibernate.HibernateException
public Connection getConnection() throws SQLException
getConnection
in interface org.hibernate.connection.ConnectionProvider
SQLException
public void closeConnection(Connection conn) throws SQLException
closeConnection
in interface org.hibernate.connection.ConnectionProvider
SQLException
public void close()
close
in interface org.hibernate.connection.ConnectionProvider
public boolean supportsAggressiveRelease()
supportsAggressiveRelease
in interface org.hibernate.connection.ConnectionProvider
Copyright © 2016. All rights reserved.