|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractorAdapter org.springframework.jdbc.support.nativejdbc.WebLogicNativeJdbcExtractor
Implementation of the NativeJdbcExtractor interface for WebLogic Server. 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 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.
Currently only tested with BEA WebLogic 8.1 SP2.
NativeJdbcExtractorAdapter.getNativeConnection(java.sql.Connection)
,
weblogic.jdbc.extensions.WLConnection#getVendorConnection
Constructor Summary | |
WebLogicNativeJdbcExtractor()
This constructor retrieves the WebLogic JDBC extension interface, so we can get the underlying vendor connection using reflection. |
Method Summary | |
protected Connection |
doGetNativeConnection(Connection con)
Retrieve the Connection via WebLogic's getVendorConnection method. |
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. |
Methods inherited from class org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractorAdapter |
getNativeCallableStatement, getNativeConnection, getNativeConnectionFromStatement, getNativePreparedStatement, getNativeResultSet, getNativeStatement |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public WebLogicNativeJdbcExtractor()
Method Detail |
public boolean isNativeConnectionNecessaryForNativeStatements()
isNativeConnectionNecessaryForNativeStatements
in interface NativeJdbcExtractor
isNativeConnectionNecessaryForNativeStatements
in class NativeJdbcExtractorAdapter
public boolean isNativeConnectionNecessaryForNativePreparedStatements()
isNativeConnectionNecessaryForNativePreparedStatements
in interface NativeJdbcExtractor
isNativeConnectionNecessaryForNativePreparedStatements
in class NativeJdbcExtractorAdapter
public boolean isNativeConnectionNecessaryForNativeCallableStatements()
isNativeConnectionNecessaryForNativeCallableStatements
in interface NativeJdbcExtractor
isNativeConnectionNecessaryForNativeCallableStatements
in class NativeJdbcExtractorAdapter
protected Connection doGetNativeConnection(Connection con) throws SQLException
getVendorConnection
method.
doGetNativeConnection
in class NativeJdbcExtractorAdapter
SQLException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |