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 java.lang.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(java.sql.Connection conn)
void
configure(java.util.Properties props)
java.sql.Connection
getConnection()
boolean
supportsAggressiveRelease()
-
-
-
Method Detail
-
configure
public void configure(java.util.Properties props) throws org.hibernate.HibernateException
- Specified by:
configure
in interfaceorg.hibernate.connection.ConnectionProvider
- Throws:
org.hibernate.HibernateException
-
getConnection
public java.sql.Connection getConnection() throws java.sql.SQLException
- Specified by:
getConnection
in interfaceorg.hibernate.connection.ConnectionProvider
- Throws:
java.sql.SQLException
-
closeConnection
public void closeConnection(java.sql.Connection conn) throws java.sql.SQLException
- Specified by:
closeConnection
in interfaceorg.hibernate.connection.ConnectionProvider
- Throws:
java.sql.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
-
-