@FunctionalInterface public interface ConnectionHandle
SimpleConnectionHandle,
ConnectionHolder| Modifier and Type | Method and Description |
|---|---|
Connection |
getConnection()
Fetch the JDBC Connection that this handle refers to.
|
default void |
releaseConnection(Connection con)
Release the JDBC Connection that this handle refers to.
|
Connection getConnection()
default void releaseConnection(Connection con)
The default implementation is empty, assuming that the lifecycle of the connection is managed externally.
con - the JDBC Connection to release