org.hibernate.ejb.connection
Class InjectedDataSourceConnectionProvider

java.lang.Object
  extended by org.hibernate.connection.DatasourceConnectionProvider
      extended by org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider
All Implemented Interfaces:
org.hibernate.connection.ConnectionProvider

public class InjectedDataSourceConnectionProvider
extends org.hibernate.connection.DatasourceConnectionProvider

A connection provider that uses an injected DataSource. Setters has to be called before configure()

Author:
Emmanuel Bernard
See Also:
ConnectionProvider

Constructor Summary
InjectedDataSourceConnectionProvider()
           
 
Method Summary
 void configure(Properties props)
           
 void setDataSource(DataSource ds)
           
 
Methods inherited from class org.hibernate.connection.DatasourceConnectionProvider
close, closeConnection, getConnection, getDataSource, supportsAggressiveRelease
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InjectedDataSourceConnectionProvider

public InjectedDataSourceConnectionProvider()
Method Detail

setDataSource

public void setDataSource(DataSource ds)
Overrides:
setDataSource in class org.hibernate.connection.DatasourceConnectionProvider

configure

public void configure(Properties props)
               throws org.hibernate.HibernateException
Specified by:
configure in interface org.hibernate.connection.ConnectionProvider
Overrides:
configure in class org.hibernate.connection.DatasourceConnectionProvider
Throws:
org.hibernate.HibernateException