org.hibernate.test.tm
Class ConnectionProviderImpl
java.lang.Object
org.hibernate.test.tm.ConnectionProviderImpl
- All Implemented Interfaces:
- ConnectionProvider
public class ConnectionProviderImpl
- extends Object
- implements ConnectionProvider
A ConnectionProvider
implementation adding JTA-style transactionality
around the returned connections using the SimpleJtaTransactionManagerImpl
.
- Author:
- Gavin King, Steve Ebersole
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConnectionProviderImpl
public ConnectionProviderImpl()
getActualConnectionProvider
public static ConnectionProvider getActualConnectionProvider()
configure
public void configure(Properties props)
throws HibernateException
- Specified by:
configure
in interface ConnectionProvider
- Throws:
HibernateException
getConnection
public Connection getConnection()
throws SQLException
- Specified by:
getConnection
in interface ConnectionProvider
- Throws:
SQLException
closeConnection
public void closeConnection(Connection conn)
throws SQLException
- Specified by:
closeConnection
in interface ConnectionProvider
- Throws:
SQLException
close
public void close()
throws HibernateException
- Specified by:
close
in interface ConnectionProvider
- Throws:
HibernateException
supportsAggressiveRelease
public boolean supportsAggressiveRelease()
- Specified by:
supportsAggressiveRelease
in interface ConnectionProvider
Copyright © 2008 Hibernate.org. All Rights Reserved.