public class

SimpleConnectionHandle

extends Object
implements ConnectionHandle
java.lang.Object
   ↳ org.springframework.jdbc.datasource.SimpleConnectionHandle

Class Overview

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

Summary

Public Constructors
SimpleConnectionHandle(Connection connection)
Create a new SimpleConnectionHandle for the given Connection.
Public Methods
Connection getConnection()
Return the specified Connection as-is.
void releaseConnection(Connection con)
This implementation is empty, as we're using a standard Connection handle that does not have to be released.
String toString()
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.springframework.jdbc.datasource.ConnectionHandle

Public Constructors

public SimpleConnectionHandle (Connection connection)

Create a new SimpleConnectionHandle for the given Connection.

Parameters
connection the JDBC Connection

Public Methods

public Connection getConnection ()

Return the specified Connection as-is.

public void releaseConnection (Connection con)

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

Parameters
con the JDBC Connection to release

public String toString ()