spring-framework / org.springframework.jdbc.datasource / SimpleConnectionHandle

SimpleConnectionHandle

open class SimpleConnectionHandle : ConnectionHandle

Simple implementation of the ConnectionHandle interface, containing a given JDBC Connection.

Author
Juergen Hoeller

Since
1.1

Constructors

<init>

SimpleConnectionHandle(connection: Connection)

Create a new SimpleConnectionHandle for the given Connection.

Functions

getConnection

open fun getConnection(): Connection

Return the specified Connection as-is.

releaseConnection

open fun releaseConnection(con: Connection): Unit

This implementation is empty, as we're using a standard Connection handle that does not have to be released.

toString

open fun toString(): String