com.jolbox.bonecp.provider
Class BoneCPConnectionProvider

java.lang.Object
  extended by com.jolbox.bonecp.provider.BoneCPConnectionProvider
All Implemented Interfaces:
org.hibernate.connection.ConnectionProvider

public class BoneCPConnectionProvider
extends java.lang.Object
implements org.hibernate.connection.ConnectionProvider

Hibernate Connection Provider.

Author:
wallacew

Constructor Summary
BoneCPConnectionProvider()
           
 
Method Summary
 void close()
          
 void closeConnection(java.sql.Connection conn)
          
 void configure(java.util.Properties props)
          
 java.lang.ClassLoader getClassLoader()
          Returns the classloader to use when attempting to load the jdbc driver (if a value is given).
 java.sql.Connection getConnection()
          
 void setClassLoader(java.lang.ClassLoader classLoader)
          Specifies the classloader to use when attempting to load the jdbc driver (if a value is given).
 boolean supportsAggressiveRelease()
          
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BoneCPConnectionProvider

public BoneCPConnectionProvider()
Method Detail

close

public void close()
           throws org.hibernate.HibernateException

Specified by:
close in interface org.hibernate.connection.ConnectionProvider
Throws:
org.hibernate.HibernateException
See Also:
ConnectionProvider.close()

closeConnection

public void closeConnection(java.sql.Connection conn)
                     throws java.sql.SQLException

Specified by:
closeConnection in interface org.hibernate.connection.ConnectionProvider
Throws:
java.sql.SQLException
See Also:
ConnectionProvider.closeConnection(java.sql.Connection)

configure

public void configure(java.util.Properties props)
               throws org.hibernate.HibernateException

Specified by:
configure in interface org.hibernate.connection.ConnectionProvider
Throws:
org.hibernate.HibernateException
See Also:
ConnectionProvider.configure(java.util.Properties)

getConnection

public java.sql.Connection getConnection()
                                  throws java.sql.SQLException

Specified by:
getConnection in interface org.hibernate.connection.ConnectionProvider
Throws:
java.sql.SQLException
See Also:
ConnectionProvider.getConnection()

supportsAggressiveRelease

public boolean supportsAggressiveRelease()

Specified by:
supportsAggressiveRelease in interface org.hibernate.connection.ConnectionProvider
See Also:
ConnectionProvider.supportsAggressiveRelease()

getClassLoader

public java.lang.ClassLoader getClassLoader()
Returns the classloader to use when attempting to load the jdbc driver (if a value is given).

Returns:
the classLoader currently set.

setClassLoader

public void setClassLoader(java.lang.ClassLoader classLoader)
Specifies the classloader to use when attempting to load the jdbc driver (if a value is given). Set to null to use the default loader.

Parameters:
classLoader - the classLoader to set


Copyright © 2009-2011 JolBox. All Rights Reserved.