org.springframework.orm.jpa.vendor
Class HibernateJpaDialect.HibernateConnectionHandle

java.lang.Object
  extended by org.springframework.orm.jpa.vendor.HibernateJpaDialect.HibernateConnectionHandle
All Implemented Interfaces:
ConnectionHandle
Enclosing class:
HibernateJpaDialect

private static class HibernateJpaDialect.HibernateConnectionHandle
extends java.lang.Object
implements ConnectionHandle


Field Summary
private static java.lang.reflect.Method connectionMethod
           
private  Session session
           
 
Constructor Summary
HibernateJpaDialect.HibernateConnectionHandle(Session session)
           
 
Method Summary
 java.sql.Connection getConnection()
          Fetch the JDBC Connection that this handle refers to.
 void releaseConnection(java.sql.Connection con)
          Release the JDBC Connection that this handle refers to.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

session

private final Session session

connectionMethod

private static volatile java.lang.reflect.Method connectionMethod
Constructor Detail

HibernateJpaDialect.HibernateConnectionHandle

public HibernateJpaDialect.HibernateConnectionHandle(Session session)
Method Detail

getConnection

public java.sql.Connection getConnection()
Description copied from interface: ConnectionHandle
Fetch the JDBC Connection that this handle refers to.

Specified by:
getConnection in interface ConnectionHandle

releaseConnection

public void releaseConnection(java.sql.Connection con)
Description copied from interface: ConnectionHandle
Release the JDBC Connection that this handle refers to.

Specified by:
releaseConnection in interface ConnectionHandle
Parameters:
con - the JDBC Connection to release