类 WebSphereNativeJdbcExtractor
- java.lang.Object
- org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractorAdapter
- org.springframework.jdbc.support.nativejdbc.WebSphereNativeJdbcExtractor
- 所有已实现的接口:
NativeJdbcExtractor
public class WebSphereNativeJdbcExtractor extends NativeJdbcExtractorAdapter
Implementation of theNativeJdbcExtractor
interface for WebSphere, supporting WebSphere Application Server 6.1 and higher.Returns the underlying native Connection to application code instead of WebSphere'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 WebSphere DataSource: If a given object is not a WebSphere Connection wrapper, it will be returned as-is.
- 从以下版本开始:
- 1.1
- 作者:
- Juergen Hoeller
构造器概要
构造器 构造器 说明 WebSphereNativeJdbcExtractor()
This constructor retrieves WebSphere JDBC adapter classes, so we can get the underlying vendor connection using reflection.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected Connection
doGetNativeConnection(Connection con)
Retrieve the Connection via WebSphere'sgetNativeConnection
method.boolean
isNativeConnectionNecessaryForNativeCallableStatements()
Returntrue
, as WebSphere returns wrapped CallableStatements.boolean
isNativeConnectionNecessaryForNativePreparedStatements()
Returntrue
, as WebSphere returns wrapped PreparedStatements.boolean
isNativeConnectionNecessaryForNativeStatements()
Returntrue
, as WebSphere returns wrapped Statements.从类继承的方法 org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractorAdapter
getNativeCallableStatement, getNativeConnection, getNativeConnectionFromStatement, getNativePreparedStatement, getNativeResultSet, getNativeStatement
构造器详细资料
WebSphereNativeJdbcExtractor
public WebSphereNativeJdbcExtractor()
This constructor retrieves WebSphere JDBC adapter classes, so we can get the underlying vendor connection using reflection.
方法详细资料
isNativeConnectionNecessaryForNativeStatements
public boolean isNativeConnectionNecessaryForNativeStatements()
Returntrue
, as WebSphere returns wrapped Statements.
isNativeConnectionNecessaryForNativePreparedStatements
public boolean isNativeConnectionNecessaryForNativePreparedStatements()
Returntrue
, as WebSphere returns wrapped PreparedStatements.
isNativeConnectionNecessaryForNativeCallableStatements
public boolean isNativeConnectionNecessaryForNativeCallableStatements()
Returntrue
, as WebSphere returns wrapped CallableStatements.
doGetNativeConnection
protected Connection doGetNativeConnection(Connection con) throws SQLException
Retrieve the Connection via WebSphere'sgetNativeConnection
method.