public class HibernateConnectionProvider
extends java.lang.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(java.sql.Connection conn) |
void |
configure(java.util.Properties props) |
java.sql.Connection |
getConnection() |
boolean |
supportsAggressiveRelease() |
public void configure(java.util.Properties props) throws org.hibernate.HibernateException
configure
in interface org.hibernate.connection.ConnectionProvider
org.hibernate.HibernateException
public java.sql.Connection getConnection() throws java.sql.SQLException
getConnection
in interface org.hibernate.connection.ConnectionProvider
java.sql.SQLException
public void closeConnection(java.sql.Connection conn) throws java.sql.SQLException
closeConnection
in interface org.hibernate.connection.ConnectionProvider
java.sql.SQLException
public void close()
close
in interface org.hibernate.connection.ConnectionProvider
public boolean supportsAggressiveRelease()
supportsAggressiveRelease
in interface org.hibernate.connection.ConnectionProvider
© 2001-2014 TIBCO Software Inc. www.jaspersoft.com