Top Description Methods
org.springframework.jdbc.datasource

public Interface ConnectionHandle

Known Direct Implementers
org.springframework.jdbc.datasource.SimpleConnectionHandle
Annotations
@FunctionalInterface
Imports
java.sql.Connection

Simple interface to be implemented by handles for a JDBC Connection. Used by JpaDialect, for example.
Author
Juergen Hoeller
Since
1.1
See Also
SimpleConnectionHandle, ConnectionHolder

Method Summary

Modifier and TypeMethod and Description
public Connection
getConnection()

Fetch the JDBC Connection that this handle refers to.

public default void
releaseConnection(Connection
the JDBC Connection to release
con
)

Release the JDBC Connection that this handle refers to.

Method Detail

getConnectionback to summary
public Connection getConnection()

Fetch the JDBC Connection that this handle refers to.

releaseConnectionback to summary
public default void releaseConnection(Connection con)

Release 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:Connection

the JDBC Connection to release