org.springframework.jdbc.datasource
Class SimpleConnectionHandle

java.lang.Object
  extended by org.springframework.jdbc.datasource.SimpleConnectionHandle
All Implemented Interfaces:
ConnectionHandle

public class SimpleConnectionHandle
extends Object
implements ConnectionHandle

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

Since:
1.1
Author:
Juergen Hoeller

Constructor Summary
SimpleConnectionHandle(Connection connection)
          Create a new SimpleConnectionHandle for the given Connection.
 
Method Summary
 Connection getConnection()
          Fetch the JDBC Connection that this handle refers to.
 void releaseConnection(Connection con)
          Release the JDBC Connection that this handle refers to.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleConnectionHandle

public SimpleConnectionHandle(Connection connection)
Create a new SimpleConnectionHandle for the given Connection.

Parameters:
connection - the JDBC Connection
Method Detail

getConnection

public Connection getConnection()
Description copied from interface: ConnectionHandle
Fetch the JDBC Connection that this handle refers to.

Specified by:
getConnection in interface ConnectionHandle

releaseConnection

public void releaseConnection(Connection con)
Description copied from interface: ConnectionHandle
Release the JDBC Connection that this handle refers to.

Specified by:
releaseConnection in interface ConnectionHandle
Parameters:
con - the JDBC Connection to release

toString

public String toString()
Overrides:
toString in class Object


Copyright (c) 2002-2005 The Spring Framework Project.