org.hibernate.connection
Class C3P0ConnectionProvider
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
C3P0ConnectionProvider
public C3P0ConnectionProvider()
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.