to.etc.domui.hibernate.config
Class SillyHibernateConnectionProvider
java.lang.Object
to.etc.domui.hibernate.config.SillyHibernateConnectionProvider
public final class SillyHibernateConnectionProvider
- extends java.lang.Object
Only reason for existence is to provide a DataSource to hibernate dynamically. This class
gets instantiated by name by Hibernate config; it will then obtain a datasource from the
already-initialized HibernateConfigurator
static member variable.
- Author:
- Frits Jalvingh
Created on Dec 30, 2010
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SillyHibernateConnectionProvider
public SillyHibernateConnectionProvider()
supportsAggressiveRelease
public boolean supportsAggressiveRelease()
getConnection
public java.sql.Connection getConnection()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
configure
public void configure(java.util.Properties props)
throws HibernateException
- Throws:
HibernateException
closeConnection
public void closeConnection(java.sql.Connection conn)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
close
public void close()
throws HibernateException
- Throws:
HibernateException