| java.lang.Object | ||
| ↳ | org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractorAdapter | |
| ↳ | org.springframework.jdbc.support.nativejdbc.WebSphereNativeJdbcExtractor | |
Implementation of the NativeJdbcExtractor interface for WebSphere,
supporting WebSphere Application Server 5.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.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
This constructor retrieves WebSphere JDBC adapter classes,
so we can get the underlying vendor connection using reflection.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Return
true, as WebSphere returns wrapped CallableStatements. | |||||||||||
Return
true, as WebSphere returns wrapped PreparedStatements. | |||||||||||
Return
true, as WebSphere returns wrapped Statements. | |||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Retrieve the Connection via WebSphere's
getNativeConnection method. | |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractorAdapter
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractor
| |||||||||||
This constructor retrieves WebSphere JDBC adapter classes, so we can get the underlying vendor connection using reflection.
Return true, as WebSphere returns wrapped CallableStatements.
Return true, as WebSphere returns wrapped PreparedStatements.
Return true, as WebSphere returns wrapped Statements.
Retrieve the Connection via WebSphere's getNativeConnection method.
| SQLException |
|---|