to.etc.domui.hibernate.config
Class SillyHibernateConnectionProvider

java.lang.Object
  extended by 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

Constructor Summary
SillyHibernateConnectionProvider()
           
 
Method Summary
 void close()
           
 void closeConnection(java.sql.Connection conn)
           
 void configure(java.util.Properties props)
           
 java.sql.Connection getConnection()
           
 boolean supportsAggressiveRelease()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SillyHibernateConnectionProvider

public SillyHibernateConnectionProvider()
Method Detail

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