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

      • HikariConnectionProvider

        public HikariConnectionProvider()
    • Method Detail

      • configure

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

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

        public void closeConnection​(Connection conn)
                             throws SQLException
        Specified by:
        closeConnection in interface org.hibernate.connection.ConnectionProvider
        Throws:
        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