org.springframework.jdbc.support.nativejdbc
Class JBossNativeJdbcExtractor
- public class JBossNativeJdbcExtractor
- implements NativeJdbcExtractor
Implementation of the NativeJdbcExtractor interface for the JBoss 3.2
connection pool. Returns the underlying native Connection, Statement,
etc to application code instead of JBoss' wrapper implementations.
The returned JDBC classes can then safely be cast, e.g. to OracleResultSet.
This NativeJdbcExtractor can be set just to allow working with
a JBoss connection pool: If a given object is not a JBoss wrapper,
it will be returned as-is.
- Author:
- Juergen Hoeller
- Since: 03.01.2004
- See Also: org.springframework.jdbc.core.JdbcTemplate.setNativeJdbcExtractor(org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractor)
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()