类 CommonsDbcpNativeJdbcExtractor
- java.lang.Object
- org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractorAdapter
- org.springframework.jdbc.support.nativejdbc.CommonsDbcpNativeJdbcExtractor
- 所有已实现的接口:
NativeJdbcExtractor
@Deprecated public class CommonsDbcpNativeJdbcExtractor extends NativeJdbcExtractorAdapter
已过时。as of Spring 4.2, in favor of Commons DBCP 2.x and JDBC 4.xImplementation of theNativeJdbcExtractor
interface for the Apache Commons DBCP connection pool, version 1.1 or higher.Returns the underlying native Connection, Statement, etc to application code instead of DBCP's wrapper implementations. 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 Commons DBCP DataSource: If a given object is not a Commons DBCP wrapper, it will be returned as-is.
Note that this version of CommonsDbcpNativeJdbcExtractor will work against the original Commons DBCP in
org.apache.commons.dbcp
as well as against Tomcat 5.5's relocated Commons DBCP version in theorg.apache.tomcat.dbcp.dbcp
package.- 从以下版本开始:
- 25.08.2003
- 作者:
- Juergen Hoeller
构造器概要
构造器 构造器 说明 CommonsDbcpNativeJdbcExtractor()
已过时。
方法概要
所有方法 实例方法 具体方法 已过时的方法 修饰符和类型 方法 说明 protected Connection
doGetNativeConnection(Connection con)
已过时。Not able to unwrap: return passed-in Connection.CallableStatement
getNativeCallableStatement(CallableStatement cs)
已过时。Not able to unwrap: return passed-in CallableStatement.PreparedStatement
getNativePreparedStatement(PreparedStatement ps)
已过时。Not able to unwrap: return passed-in PreparedStatement.ResultSet
getNativeResultSet(ResultSet rs)
已过时。Not able to unwrap: return passed-in ResultSet.Statement
getNativeStatement(Statement stmt)
已过时。Not able to unwrap: return passed-in Statement.从类继承的方法 org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractorAdapter
getNativeConnection, getNativeConnectionFromStatement, isNativeConnectionNecessaryForNativeCallableStatements, isNativeConnectionNecessaryForNativePreparedStatements, isNativeConnectionNecessaryForNativeStatements
构造器详细资料
CommonsDbcpNativeJdbcExtractor
public CommonsDbcpNativeJdbcExtractor()
已过时。
方法详细资料
doGetNativeConnection
protected Connection doGetNativeConnection(Connection con) throws SQLException
已过时。从类复制的说明:NativeJdbcExtractorAdapter
Not able to unwrap: return passed-in Connection.
getNativeStatement
public Statement getNativeStatement(Statement stmt) throws SQLException
已过时。从类复制的说明:NativeJdbcExtractorAdapter
Not able to unwrap: return passed-in Statement.- 指定者:
getNativeStatement
在接口中NativeJdbcExtractor
- 覆盖:
getNativeStatement
在类中NativeJdbcExtractorAdapter
- 参数:
stmt
- the Statement handle, potentially wrapped by a connection pool- 返回:
- the underlying native JDBC Statement, if possible; else, the original Statement
- 抛出:
SQLException
- if thrown by JDBC methods
getNativePreparedStatement
public PreparedStatement getNativePreparedStatement(PreparedStatement ps) throws SQLException
已过时。从类复制的说明:NativeJdbcExtractorAdapter
Not able to unwrap: return passed-in PreparedStatement.- 指定者:
getNativePreparedStatement
在接口中NativeJdbcExtractor
- 覆盖:
getNativePreparedStatement
在类中NativeJdbcExtractorAdapter
- 参数:
ps
- the PreparedStatement handle, potentially wrapped by a connection pool- 返回:
- the underlying native JDBC PreparedStatement, if possible; else, the original PreparedStatement
- 抛出:
SQLException
- if thrown by JDBC methods
getNativeCallableStatement
public CallableStatement getNativeCallableStatement(CallableStatement cs) throws SQLException
已过时。从类复制的说明:NativeJdbcExtractorAdapter
Not able to unwrap: return passed-in CallableStatement.- 指定者:
getNativeCallableStatement
在接口中NativeJdbcExtractor
- 覆盖:
getNativeCallableStatement
在类中NativeJdbcExtractorAdapter
- 参数:
cs
- the CallableStatement handle, potentially wrapped by a connection pool- 返回:
- the underlying native JDBC CallableStatement, if possible; else, the original CallableStatement
- 抛出:
SQLException
- if thrown by JDBC methods
getNativeResultSet
public ResultSet getNativeResultSet(ResultSet rs) throws SQLException
已过时。从类复制的说明:NativeJdbcExtractorAdapter
Not able to unwrap: return passed-in ResultSet.- 指定者:
getNativeResultSet
在接口中NativeJdbcExtractor
- 覆盖:
getNativeResultSet
在类中NativeJdbcExtractorAdapter
- 参数:
rs
- the ResultSet handle, potentially wrapped by a connection pool- 返回:
- the underlying native JDBC ResultSet, if possible; else, the original ResultSet
- 抛出:
SQLException
- if thrown by JDBC methods