org.hibernate.ejb.connection
Class InjectedDataSourceConnectionProvider
java.lang.Object
org.hibernate.connection.DatasourceConnectionProvider
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
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 |
InjectedDataSourceConnectionProvider
public InjectedDataSourceConnectionProvider()
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