org.hibernate.connection
Class C3P0ConnectionProvider

java.lang.Object
  extended by org.hibernate.connection.C3P0ConnectionProvider
All Implemented Interfaces:
ConnectionProvider

public class C3P0ConnectionProvider
extends Object
implements ConnectionProvider

A connection provider that uses a C3P0 connection pool. Hibernate will use this by default if the hibernate.c3p0.* properties are set.

Author:
various people
See Also:
ConnectionProvider

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

Constructor Detail

C3P0ConnectionProvider

public C3P0ConnectionProvider()
Method Detail

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

configure

public void configure(Properties props)
               throws HibernateException

Specified by:
configure in interface ConnectionProvider
Throws:
HibernateException

close

public void close()

Specified by:
close in interface ConnectionProvider

supportsAggressiveRelease

public boolean supportsAggressiveRelease()

Specified by:
supportsAggressiveRelease in interface ConnectionProvider


Copyright © 2011 Hibernate.org. All Rights Reserved.