类 SimpleConnectionHandle
- java.lang.Object
- org.springframework.jdbc.datasource.SimpleConnectionHandle
- 所有已实现的接口:
ConnectionHandle
public class SimpleConnectionHandle extends Object implements ConnectionHandle
Simple implementation of theConnectionHandle
interface, containing a given JDBC Connection.- 从以下版本开始:
- 1.1
- 作者:
- Juergen Hoeller
构造器概要
构造器 构造器 说明 SimpleConnectionHandle(Connection connection)
Create a new SimpleConnectionHandle for the given Connection.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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()
构造器详细资料
SimpleConnectionHandle
public SimpleConnectionHandle(Connection connection)
Create a new SimpleConnectionHandle for the given Connection.- 参数:
connection
- the JDBC Connection
方法详细资料
getConnection
public Connection getConnection()
Return the specified Connection as-is.- 指定者:
getConnection
在接口中ConnectionHandle
releaseConnection
public void releaseConnection(Connection con)
This implementation is empty, as we're using a standard Connection handle that does not have to be released.- 指定者:
releaseConnection
在接口中ConnectionHandle
- 参数:
con
- the JDBC Connection to release