当前页面:
在线文档首页 >
Spring Framework 1.2.9 API 文档英文版
ConnectionProxy (Spring Framework) - Spring Framework 1.2.9 API 文档英文版
org.springframework.jdbc.datasource
Interface ConnectionProxy
- All Superinterfaces:
- Connection
public interface ConnectionProxy
- extends Connection
Subinterface of Connection to be implemented by connection proxies.
Allows access to the target connection.
Can be checked for when needing to cast to a native Connection
like OracleConnection. Spring's NativeJdbcExtractorAdapter automatically
detects such proxies before delegating to the actual unwrapping for a
specific connection pool.
- Since:
- 1.1
- Author:
- Juergen Hoeller
- See Also:
NativeJdbcExtractorAdapter.getNativeConnection(java.sql.Connection)
Methods inherited from interface java.sql.Connection |
clearWarnings, close, commit, createStatement, createStatement, createStatement, getAutoCommit, getCatalog, getHoldability, getMetaData, getTransactionIsolation, getTypeMap, getWarnings, isClosed, isReadOnly, nativeSQL, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, rollback, rollback, setAutoCommit, setCatalog, setHoldability, setReadOnly, setSavepoint, setSavepoint, setTransactionIsolation, setTypeMap |
getTargetConnection
Connection getTargetConnection()
- Return the target connection of this proxy.
This will typically either be the native JDBC Connection
or a wrapper from a connection pool.
Copyright (c) 2002-2007 The Spring Framework Project.