org.hibernate.test.tm
Class ConnectionProviderImpl

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

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

Constructor Detail

ConnectionProviderImpl

public ConnectionProviderImpl()
Method Detail

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.