public interface ConnectionProxy
extends java.sql.Connection
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.
TransactionAwareDataSourceProxy
,
LazyConnectionDataSourceProxy
,
DataSourceUtils.getTargetConnection(java.sql.Connection)
Modifier and Type | Method and Description |
---|---|
java.sql.Connection |
getTargetConnection()
Return the target Connection of this proxy.
|
abort, clearWarnings, close, commit, createArrayOf, createBlob, createClob, createNClob, createSQLXML, createStatement, createStatement, createStatement, createStruct, getAutoCommit, getCatalog, getClientInfo, getClientInfo, getHoldability, getMetaData, getNetworkTimeout, getSchema, getTransactionIsolation, getTypeMap, getWarnings, isClosed, isReadOnly, isValid, nativeSQL, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, rollback, rollback, setAutoCommit, setCatalog, setClientInfo, setClientInfo, setHoldability, setNetworkTimeout, setReadOnly, setSavepoint, setSavepoint, setSchema, setTransactionIsolation, setTypeMap