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 underlying target Connection.
This interface can be checked when there is a need to cast to a
native JDBC Connection such as Oracle's 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:
TransactionAwareDataSourceProxy
,
LazyConnectionDataSourceProxy
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 be the native driver Connection
or a wrapper from a connection pool.
- Returns:
- the underlying Connection (never
null
)
Copyright © 2002-2007 The Spring Framework.