java.lang.Object | ||
↳ | org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractorAdapter | |
↳ | org.springframework.jdbc.support.nativejdbc.Jdbc4NativeJdbcExtractor |
Known Direct Subclasses |
NativeJdbcExtractor
implementation that delegates to JDBC 4.0's
unwrap
method, as defined by java.sql.Wrapper.
You will typically need to specify a vendor Connection type
/ Statement type
/ ResultSet type
to extract, since JDBC 4.0 only actually unwraps to a given target type.
Note: Only use this when actually running against a JDBC 4.0 driver, with a
connection pool that supports the JDBC 4.0 API (i.e. at least accepts JDBC 4.0
API calls and passes them through to the underlying driver)! Other than that,
there is no need for connection pool specific setup. As of JDBC 4.0,
NativeJdbcExtractors will typically be implemented for specific drivers
instead of for specific pools (e.g. OracleJdbc4NativeJdbcExtractor
).
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Not able to unwrap: return passed-in CallableStatement.
| |||||||||||
Not able to unwrap: return passed-in PreparedStatement.
| |||||||||||
Not able to unwrap: return passed-in ResultSet.
| |||||||||||
Not able to unwrap: return passed-in Statement.
| |||||||||||
Set the vendor's CallableStatement type, e.g.
| |||||||||||
Set the vendor's Connection type, e.g.
| |||||||||||
Set the vendor's PreparedStatement type, e.g.
| |||||||||||
Set the vendor's ResultSet type, e.g.
| |||||||||||
Set the vendor's Statement type, e.g.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Not able to unwrap: return passed-in Connection.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractorAdapter
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractor
|
Not able to unwrap: return passed-in CallableStatement.
cs | the CallableStatement handle, potentially wrapped by a connection pool |
---|
SQLException |
---|
Not able to unwrap: return passed-in PreparedStatement.
ps | the PreparedStatement handle, potentially wrapped by a connection pool |
---|
SQLException |
---|
Not able to unwrap: return passed-in ResultSet.
rs | the ResultSet handle, potentially wrapped by a connection pool |
---|
SQLException |
---|
Not able to unwrap: return passed-in Statement.
stmt | the Statement handle, potentially wrapped by a connection pool |
---|
SQLException |
---|
Set the vendor's CallableStatement type, e.g. oracle.jdbc.OracleCallableStatement
.
Set the vendor's Connection type, e.g. oracle.jdbc.OracleConnection
.
Set the vendor's PreparedStatement type, e.g. oracle.jdbc.OraclePreparedStatement
.
Set the vendor's ResultSet type, e.g. oracle.jdbc.OracleResultSet
.
Set the vendor's Statement type, e.g. oracle.jdbc.OracleStatement
.
Not able to unwrap: return passed-in Connection.
SQLException |
---|