org.springframework.jdbc.support.nativejdbc
Class XAPoolNativeJdbcExtractor
- public class XAPoolNativeJdbcExtractor
- implements NativeJdbcExtractor
Implementation of the NativeJdbcExtractor interface for ObjectWeb's XAPool
connection pool. 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 a XAPool
DataSource: If a given object is not an XAPool wrapper, it will be returned as-is.
- Author:
- Juergen Hoeller
- Since: 06.02.2004
getNativeCallableStatement
public CallableStatement getNativeCallableStatement(CallableStatement cs)
throws java.sql.SQLException
getNativeConnection
public Connection getNativeConnection(Connection con)
throws java.sql.SQLException
getNativeConnectionFromStatement
public Connection getNativeConnectionFromStatement(Statement stmt)
throws java.sql.SQLException
getNativePreparedStatement
public PreparedStatement getNativePreparedStatement(PreparedStatement ps)
throws java.sql.SQLException
getNativeResultSet
public ResultSet getNativeResultSet(ResultSet rs)
throws java.sql.SQLException
getNativeStatement
public Statement getNativeStatement(Statement stmt)
throws java.sql.SQLException
isNativeConnectionNecessaryForNativeCallableStatements
public boolean isNativeConnectionNecessaryForNativeCallableStatements()
isNativeConnectionNecessaryForNativePreparedStatements
public boolean isNativeConnectionNecessaryForNativePreparedStatements()
isNativeConnectionNecessaryForNativeStatements
public boolean isNativeConnectionNecessaryForNativeStatements()