Class 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 Detail

      • HikariConnectionProvider

        public HikariConnectionProvider()
    • Method Detail

      • configure

        public void configure​(java.util.Properties props)
                       throws org.hibernate.HibernateException
        Specified by:
        configure in interface org.hibernate.connection.ConnectionProvider
        Throws:
        org.hibernate.HibernateException
      • getConnection

        public java.sql.Connection getConnection()
                                          throws java.sql.SQLException
        Specified by:
        getConnection in interface org.hibernate.connection.ConnectionProvider
        Throws:
        java.sql.SQLException
      • closeConnection

        public void closeConnection​(java.sql.Connection conn)
                             throws java.sql.SQLException
        Specified by:
        closeConnection in interface org.hibernate.connection.ConnectionProvider
        Throws:
        java.sql.SQLException
      • supportsAggressiveRelease

        public boolean supportsAggressiveRelease()
        Specified by:
        supportsAggressiveRelease in interface org.hibernate.connection.ConnectionProvider
      • close

        public void close()
                   throws org.hibernate.HibernateException
        Specified by:
        close in interface org.hibernate.connection.ConnectionProvider
        Throws:
        org.hibernate.HibernateException