org.hibernate.connection

Class UserSuppliedConnectionProvider

Implemented Interfaces:
ConnectionProvider

public class UserSuppliedConnectionProvider
extends java.lang.Object
implements ConnectionProvider

An implementation of the ConnectionProvider interface that simply throws an exception when a connection is requested. This implementation indicates that the user is expected to supply a JDBC connection.
Author:
Gavin King
See Also:
ConnectionProvider

Method Summary

void
close()
void
closeConnection(Connection conn)
void
configure(Properties props)
Connection
getConnection()
boolean
supportsAggressiveRelease()

Method Details

close

public void close()
Specified by:
close in interface ConnectionProvider

closeConnection

public void closeConnection(Connection conn)
Specified by:
closeConnection in interface ConnectionProvider

configure

public void configure(Properties props)
            throws HibernateException
Specified by:
configure in interface ConnectionProvider

getConnection

public Connection getConnection()
Specified by:
getConnection in interface ConnectionProvider

supportsAggressiveRelease

public boolean supportsAggressiveRelease()
Specified by:
supportsAggressiveRelease in interface ConnectionProvider