public class BoneCPNativeJdbcExtractor
extends org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractorAdapter
NativeJdbcExtractor interface for BoneCP.
Returns the underlying native Connection and Statement to application code instead of BoneCP logical handles.
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 BoneCP connection pool: If a given object is not a BoneCP handle, it will be returned as-is.
ConnectionHandle.getInternalConnection(),
StatementHandle.getInternalStatement()| Constructor and Description |
|---|
BoneCPNativeJdbcExtractor()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected Connection |
doGetNativeConnection(Connection conn) |
CallableStatement |
getNativeCallableStatement(CallableStatement cs) |
PreparedStatement |
getNativePreparedStatement(PreparedStatement ps) |
Statement |
getNativeStatement(Statement stmt) |
getNativeConnection, getNativeConnectionFromStatement, getNativeResultSet, isNativeConnectionNecessaryForNativeCallableStatements, isNativeConnectionNecessaryForNativePreparedStatements, isNativeConnectionNecessaryForNativeStatementspublic BoneCPNativeJdbcExtractor()
protected Connection doGetNativeConnection(Connection conn) throws SQLException
doGetNativeConnection in class org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractorAdapterSQLExceptionNativeJdbcExtractorAdapter.doGetNativeConnection(java.sql.Connection)public Statement getNativeStatement(Statement stmt) throws SQLException
getNativeStatement in interface org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractorgetNativeStatement in class org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractorAdapterSQLExceptionNativeJdbcExtractorAdapter.getNativeStatement(java.sql.Statement)public PreparedStatement getNativePreparedStatement(PreparedStatement ps) throws SQLException
getNativePreparedStatement in interface org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractorgetNativePreparedStatement in class org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractorAdapterSQLExceptionNativeJdbcExtractorAdapter.getNativePreparedStatement(java.sql.PreparedStatement)public CallableStatement getNativeCallableStatement(CallableStatement cs) throws SQLException
getNativeCallableStatement in interface org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractorgetNativeCallableStatement in class org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractorAdapterSQLExceptionNativeJdbcExtractorAdapter.getNativeCallableStatement(java.sql.CallableStatement)Copyright © 2009-2013 JolBox. All Rights Reserved.