private static class HibernateJpaDialect.HibernateConnectionHandle extends java.lang.Object implements ConnectionHandle
Modifier and Type | Field and Description |
---|---|
private static java.lang.reflect.Method |
connectionMethodToUse |
private Session |
session |
Constructor and Description |
---|
HibernateConnectionHandle(Session session) |
Modifier and Type | Method and Description |
---|---|
static java.sql.Connection |
doGetConnection(Session session) |
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.
|
private static volatile java.lang.reflect.Method connectionMethodToUse
private final Session session
public java.sql.Connection getConnection()
ConnectionHandle
getConnection
in interface ConnectionHandle
public void releaseConnection(java.sql.Connection con)
ConnectionHandle
releaseConnection
in interface ConnectionHandle
con
- the JDBC Connection to releasepublic static java.sql.Connection doGetConnection(Session session)