public class

WebLogicNativeJdbcExtractor

extends NativeJdbcExtractorAdapter
java.lang.Object
   ↳ org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractorAdapter
     ↳ org.springframework.jdbc.support.nativejdbc.WebLogicNativeJdbcExtractor

Class Overview

Implementation of the NativeJdbcExtractor interface for WebLogic, supporting WebLogic Server 8.1 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.

See Also

Summary

Public Constructors
WebLogicNativeJdbcExtractor()
This constructor retrieves the WebLogic JDBC extension interface, so we can get the underlying vendor connection using reflection.
Public Methods
boolean isNativeConnectionNecessaryForNativeCallableStatements()
Return true, as WebLogic returns wrapped CallableStatements.
boolean isNativeConnectionNecessaryForNativePreparedStatements()
Return true, as WebLogic returns wrapped PreparedStatements.
boolean isNativeConnectionNecessaryForNativeStatements()
Return true, as WebLogic returns wrapped Statements.
Protected Methods
Connection doGetNativeConnection(Connection con)
Retrieve the Connection via WebLogic's getVendorConnection 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

Public Constructors

public WebLogicNativeJdbcExtractor ()

This constructor retrieves the WebLogic JDBC extension interface, so we can get the underlying vendor connection using reflection.

Public Methods

public boolean isNativeConnectionNecessaryForNativeCallableStatements ()

Return true, as WebLogic returns wrapped CallableStatements.

public boolean isNativeConnectionNecessaryForNativePreparedStatements ()

Return true, as WebLogic returns wrapped PreparedStatements.

public boolean isNativeConnectionNecessaryForNativeStatements ()

Return true, as WebLogic returns wrapped Statements.

Protected Methods

protected Connection doGetNativeConnection (Connection con)

Retrieve the Connection via WebLogic's getVendorConnection method.

Throws
SQLException