类 WebLogicNativeJdbcExtractor
- java.lang.Object
- org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractorAdapter
- org.springframework.jdbc.support.nativejdbc.WebLogicNativeJdbcExtractor
- 所有已实现的接口:
NativeJdbcExtractor
public class WebLogicNativeJdbcExtractor extends NativeJdbcExtractorAdapter
Implementation of theNativeJdbcExtractor
interface for WebLogic, supporting WebLogic Server 9.0 and higher.Returns the underlying native Connection to application code instead of WebLogic's wrapper implementation; unwraps the Connection for native statements. The returned JDBC classes can then safely be cast, e.g. to
oracle.jdbc.OracleConnection
.This NativeJdbcExtractor can be set just to allow working with a WebLogic DataSource: If a given object is not a WebLogic Connection wrapper, it will be returned as-is.
- 从以下版本开始:
- 1.0.2
- 作者:
- Thomas Risberg, Juergen Hoeller
- 另请参阅:
NativeJdbcExtractorAdapter.getNativeConnection(java.sql.Connection)
,weblogic.jdbc.extensions.WLConnection#getVendorConnection
构造器概要
构造器 构造器 说明 WebLogicNativeJdbcExtractor()
This constructor retrieves the WebLogic JDBC extension interface, so we can get the underlying vendor connection using reflection.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected Connection
doGetNativeConnection(Connection con)
Retrieve the Connection via WebLogic'sgetVendorConnection
method.boolean
isNativeConnectionNecessaryForNativeCallableStatements()
Returntrue
, as WebLogic returns wrapped CallableStatements.boolean
isNativeConnectionNecessaryForNativePreparedStatements()
Returntrue
, as WebLogic returns wrapped PreparedStatements.boolean
isNativeConnectionNecessaryForNativeStatements()
Returntrue
, as WebLogic returns wrapped Statements.从类继承的方法 org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractorAdapter
getNativeCallableStatement, getNativeConnection, getNativeConnectionFromStatement, getNativePreparedStatement, getNativeResultSet, getNativeStatement
构造器详细资料
WebLogicNativeJdbcExtractor
public WebLogicNativeJdbcExtractor()
This constructor retrieves the WebLogic JDBC extension interface, so we can get the underlying vendor connection using reflection.
方法详细资料
isNativeConnectionNecessaryForNativeStatements
public boolean isNativeConnectionNecessaryForNativeStatements()
Returntrue
, as WebLogic returns wrapped Statements.
isNativeConnectionNecessaryForNativePreparedStatements
public boolean isNativeConnectionNecessaryForNativePreparedStatements()
Returntrue
, as WebLogic returns wrapped PreparedStatements.
isNativeConnectionNecessaryForNativeCallableStatements
public boolean isNativeConnectionNecessaryForNativeCallableStatements()
Returntrue
, as WebLogic returns wrapped CallableStatements.
doGetNativeConnection
protected Connection doGetNativeConnection(Connection con) throws SQLException
Retrieve the Connection via WebLogic'sgetVendorConnection
method.