connectionproxy.java

来自「Java/J2EE application framework based on」· Java 代码 · 共 28 行

JAVA
28
字号
package org.springframework.jdbc.datasource;

import java.sql.Connection;

/**
 * Subinterface of Connection to be implemented by connection proxies.
 * Allows access to the target connection.
 *
 * <p>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.
 *
 * @author Juergen Hoeller
 * @since 22.07.2004
 * @see org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractorAdapter#getNativeConnection
 */
public interface ConnectionProxy extends Connection {

	/**
	 * Return the target connection of this proxy.
	 * <p>This will typically either be the native JDBC Connection
	 * or a wrapper from a connection pool.
	 */
	Connection getTargetConnection();

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?