Top Description Fields Constructors Methods
org.springframework.jdbc.datasource

public Class SimpleConnectionHandle

extends Object
implements ConnectionHandle
Class Inheritance
All Implemented Interfaces
org.springframework.jdbc.datasource.ConnectionHandle
Imports
java.sql.Connection, org.springframework.util.Assert

Simple implementation of the ConnectionHandle interface, containing a given JDBC Connection.
Author
Juergen Hoeller
Since
1.1

Field Summary

Modifier and TypeField and Description
private final Connection

Constructor Summary

AccessConstructor and Description
public
SimpleConnectionHandle(Connection
the JDBC Connection
connection
)

Create a new SimpleConnectionHandle for the given Connection.

Method Summary

Modifier and TypeMethod and Description
public Connection
getConnection()

Implements org.springframework.jdbc.datasource.ConnectionHandle.getConnection.

Return the specified Connection as-is.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

connectionback to summary
private final Connection connection

Constructor Detail

SimpleConnectionHandleback to summary
public SimpleConnectionHandle(Connection connection)

Create a new SimpleConnectionHandle for the given Connection.

Parameters
connection:Connection

the JDBC Connection

Method Detail

getConnectionback to summary
public Connection getConnection()

Implements org.springframework.jdbc.datasource.ConnectionHandle.getConnection.

Return the specified Connection as-is.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override