net.ttddyy.dsproxy.support
Class DataSourceProxyNativeJdbcExtractor

java.lang.Object
  extended by org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractorAdapter
      extended by net.ttddyy.dsproxy.support.DataSourceProxyNativeJdbcExtractor
All Implemented Interfaces:
org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractor

public class DataSourceProxyNativeJdbcExtractor
extends org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractorAdapter

Spring NativeJdbcExtractor for our proxy classes. If delegating extractor is specified, after unwrapping our proxy, delegating extractor will be applied.

Author:
Tadaya Tsuyukubo

Constructor Summary
DataSourceProxyNativeJdbcExtractor()
           
 
Method Summary
protected  Connection doGetNativeConnection(Connection con)
           
 CallableStatement getNativeCallableStatement(CallableStatement cs)
           
 PreparedStatement getNativePreparedStatement(PreparedStatement ps)
           
 Statement getNativeStatement(Statement stmt)
           
 void setDelegate(org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractor delegate)
           
 
Methods inherited from class org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractorAdapter
getNativeConnection, getNativeConnectionFromStatement, getNativeResultSet, isNativeConnectionNecessaryForNativeCallableStatements, isNativeConnectionNecessaryForNativePreparedStatements, isNativeConnectionNecessaryForNativeStatements
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataSourceProxyNativeJdbcExtractor

public DataSourceProxyNativeJdbcExtractor()
Method Detail

doGetNativeConnection

protected Connection doGetNativeConnection(Connection con)
                                    throws SQLException
Overrides:
doGetNativeConnection in class org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractorAdapter
Throws:
SQLException

getNativeStatement

public Statement getNativeStatement(Statement stmt)
                             throws SQLException
Specified by:
getNativeStatement in interface org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractor
Overrides:
getNativeStatement in class org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractorAdapter
Throws:
SQLException

getNativePreparedStatement

public PreparedStatement getNativePreparedStatement(PreparedStatement ps)
                                             throws SQLException
Specified by:
getNativePreparedStatement in interface org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractor
Overrides:
getNativePreparedStatement in class org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractorAdapter
Throws:
SQLException

getNativeCallableStatement

public CallableStatement getNativeCallableStatement(CallableStatement cs)
                                             throws SQLException
Specified by:
getNativeCallableStatement in interface org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractor
Overrides:
getNativeCallableStatement in class org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractorAdapter
Throws:
SQLException

setDelegate

public void setDelegate(org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractor delegate)


Copyright © 2012. All Rights Reserved.