|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.springframework.jdbc.support.nativejdbc.NativeJdbcExtractorAdapter
org.springframework.jdbc.support.nativejdbc.XAPoolNativeJdbcExtractor
Implementation of the NativeJdbcExtractor interface for ObjectWeb's XAPool. Returns underlying native Connections and native PreparedStatements to application code instead of XAPool's wrapper implementations; unwraps the Connection for native Statements and native CallableStatements. The returned JDBC classes can then safely be cast, e.g. to OracleResultSet.
This NativeJdbcExtractor can be set just to allow working with an XAPool DataSource: If a given object is not an XAPool wrapper, it will be returned as-is.
| Constructor Summary | |
XAPoolNativeJdbcExtractor()
|
|
| Method Summary | |
java.sql.Connection |
getNativeConnection(java.sql.Connection con)
Not able to unwrap: return passed-in Connection. |
java.sql.PreparedStatement |
getNativePreparedStatement(java.sql.PreparedStatement ps)
Not able to unwrap: return passed-in PreparedStatement. |
boolean |
isNativeConnectionNecessaryForNativeCallableStatements()
Return true, as CoreCallableStatement does not allow access to the underlying Connection. |
boolean |
isNativeConnectionNecessaryForNativeStatements()
Return true, as CoreStatement does not allow access to the underlying Connection. |
| Methods inherited from class org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractorAdapter |
getNativeCallableStatement, getNativeConnectionFromStatement, getNativeResultSet, getNativeStatement, isNativeConnectionNecessaryForNativePreparedStatements |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public XAPoolNativeJdbcExtractor()
| Method Detail |
public boolean isNativeConnectionNecessaryForNativeStatements()
isNativeConnectionNecessaryForNativeStatements in interface NativeJdbcExtractorisNativeConnectionNecessaryForNativeStatements in class NativeJdbcExtractorAdapterpublic boolean isNativeConnectionNecessaryForNativeCallableStatements()
isNativeConnectionNecessaryForNativeCallableStatements in interface NativeJdbcExtractorisNativeConnectionNecessaryForNativeCallableStatements in class NativeJdbcExtractorAdapter
public java.sql.Connection getNativeConnection(java.sql.Connection con)
throws java.sql.SQLException
NativeJdbcExtractorAdapter
getNativeConnection in interface NativeJdbcExtractorgetNativeConnection in class NativeJdbcExtractorAdapterjava.sql.SQLException
public java.sql.PreparedStatement getNativePreparedStatement(java.sql.PreparedStatement ps)
throws java.sql.SQLException
NativeJdbcExtractorAdapter
getNativePreparedStatement in interface NativeJdbcExtractorgetNativePreparedStatement in class NativeJdbcExtractorAdapterjava.sql.SQLException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||