net.sf.jabb.util.db
Class HibernateConnectionProvider

java.lang.Object
  extended by net.sf.jabb.util.db.HibernateConnectionProvider
All Implemented Interfaces:
Serializable, org.hibernate.service.jdbc.connections.spi.ConnectionProvider, org.hibernate.service.Service, org.hibernate.service.spi.Wrapped

public class HibernateConnectionProvider
extends Object
implements org.hibernate.service.jdbc.connections.spi.ConnectionProvider

Author:
Zhengmao HU (James)
See Also:
Serialized Form

Constructor Summary
HibernateConnectionProvider()
           
 
Method Summary
 void closeConnection(Connection conn)
           
 Connection getConnection()
           
 boolean isUnwrappableAs(Class unwrapType)
           
 boolean supportsAggressiveRelease()
           
<T> T
unwrap(Class<T> unwrapType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HibernateConnectionProvider

public HibernateConnectionProvider()
Method Detail

isUnwrappableAs

public boolean isUnwrappableAs(Class unwrapType)
Specified by:
isUnwrappableAs in interface org.hibernate.service.spi.Wrapped

unwrap

public <T> T unwrap(Class<T> unwrapType)
Specified by:
unwrap in interface org.hibernate.service.spi.Wrapped

getConnection

public Connection getConnection()
                         throws SQLException
Specified by:
getConnection in interface org.hibernate.service.jdbc.connections.spi.ConnectionProvider
Throws:
SQLException

closeConnection

public void closeConnection(Connection conn)
                     throws SQLException
Specified by:
closeConnection in interface org.hibernate.service.jdbc.connections.spi.ConnectionProvider
Throws:
SQLException

supportsAggressiveRelease

public boolean supportsAggressiveRelease()
Specified by:
supportsAggressiveRelease in interface org.hibernate.service.jdbc.connections.spi.ConnectionProvider


Copyright © 2012. All Rights Reserved.