Class ApplicationContextConnectionProvider

java.lang.Object
org.jasig.portlet.newsreader.hibernate.ApplicationContextConnectionProvider
All Implemented Interfaces:
org.hibernate.connection.ConnectionProvider

public class ApplicationContextConnectionProvider extends Object implements org.hibernate.connection.ConnectionProvider
When the hibernate3-maven-plugin:hbm2ddl goal is executed, this class provides connections from the Spring ApplicationContext, which is capable of using encrypted database connection settings (in datasource.properties).
Since:
5.1.1
Author:
drewwills
  • Constructor Details

    • ApplicationContextConnectionProvider

      public ApplicationContextConnectionProvider()
  • Method Details

    • close

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

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

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