类 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.String
toString()
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
从接口继承的方法 org.springframework.jdbc.datasource.ConnectionHandle
releaseConnection
构造器详细资料
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