Interface ConnectionHandle
- All Known Implementing Classes:
- SimpleConnectionHandle
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Simple interface to be implemented by handles for a JDBC Connection.
Used by JpaDialect, for example.
- Since:
- 1.1
- Author:
- Juergen Hoeller
- See Also:
- 
Method SummaryModifier and TypeMethodDescriptionFetch the JDBC Connection that this handle refers to.default voidRelease the JDBC Connection that this handle refers to.
- 
Method Details- 
getConnectionConnection getConnection()Fetch the JDBC Connection that this handle refers to.
- 
releaseConnectionRelease the JDBC Connection that this handle refers to.The default implementation is empty, assuming that the lifecycle of the connection is managed externally. - Parameters:
- con- the JDBC Connection to release
 
 
-