Package lumis.portal.dao.hibernate
Class HikariConnectionProvider
- java.lang.Object
-
- lumis.portal.dao.hibernate.HikariConnectionProvider
-
- All Implemented Interfaces:
org.hibernate.connection.ConnectionProvider
public class HikariConnectionProvider extends Object implements org.hibernate.connection.ConnectionProvider
Hibernate connection provider using Hikari connection pool.- Since:
- 10.1.0
- Version:
- $Revision: 23090 $ $Date: 2019-08-27 11:41:12 -0300 (Tue, 27 Aug 2019) $
-
-
Constructor Summary
Constructors Constructor Description HikariConnectionProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
closeConnection(Connection conn)
void
configure(Properties props)
Connection
getConnection()
boolean
supportsAggressiveRelease()
-
-
-
Method Detail
-
configure
public void configure(Properties props) throws org.hibernate.HibernateException
- Specified by:
configure
in interfaceorg.hibernate.connection.ConnectionProvider
- Throws:
org.hibernate.HibernateException
-
getConnection
public Connection getConnection() throws SQLException
- Specified by:
getConnection
in interfaceorg.hibernate.connection.ConnectionProvider
- Throws:
SQLException
-
closeConnection
public void closeConnection(Connection conn) throws SQLException
- Specified by:
closeConnection
in interfaceorg.hibernate.connection.ConnectionProvider
- Throws:
SQLException
-
supportsAggressiveRelease
public boolean supportsAggressiveRelease()
- Specified by:
supportsAggressiveRelease
in interfaceorg.hibernate.connection.ConnectionProvider
-
close
public void close() throws org.hibernate.HibernateException
- Specified by:
close
in interfaceorg.hibernate.connection.ConnectionProvider
- Throws:
org.hibernate.HibernateException
-
-