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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidcloseConnection(Connection conn) voidconfigure(Properties props) boolean
-
Constructor Details
-
ApplicationContextConnectionProvider
public ApplicationContextConnectionProvider()
-
-
Method Details
-
close
public void close() throws org.hibernate.HibernateException- Specified by:
closein interfaceorg.hibernate.connection.ConnectionProvider- Throws:
org.hibernate.HibernateException
-
closeConnection
- Specified by:
closeConnectionin interfaceorg.hibernate.connection.ConnectionProvider- Throws:
SQLException
-
configure
- Specified by:
configurein interfaceorg.hibernate.connection.ConnectionProvider- Throws:
org.hibernate.HibernateException
-
getConnection
- Specified by:
getConnectionin interfaceorg.hibernate.connection.ConnectionProvider- Throws:
SQLException
-
supportsAggressiveRelease
public boolean supportsAggressiveRelease()- Specified by:
supportsAggressiveReleasein interfaceorg.hibernate.connection.ConnectionProvider
-