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 |
private static java.lang.reflect.Method |
sessionConnectionMethod |
Constructor and Description |
---|
HibernateConnectionHandle(Session session) |
Modifier and Type | Method and Description |
---|---|
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 final Session session
private static final java.lang.reflect.Method sessionConnectionMethod
private static volatile java.lang.reflect.Method connectionMethodToUse
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 release