Class NuxeoConnectionProvider

  • All Implemented Interfaces:
    org.hibernate.connection.ConnectionProvider

    public class NuxeoConnectionProvider
    extends Object
    implements org.hibernate.connection.ConnectionProvider
    ConnectionProvider for Hibernate that looks up the datasource from the nuxeo's container.
    Since:
    5.7
    • Constructor Detail

      • NuxeoConnectionProvider

        public NuxeoConnectionProvider()
    • Method Detail

      • configure

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

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

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

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

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