com.atlassian.spring
Class LazyNativeJdbcExtractor
java.lang.Object
com.atlassian.spring.LazyNativeJdbcExtractor
- All Implemented Interfaces:
- org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractor
public class LazyNativeJdbcExtractor
- extends java.lang.Object
- implements org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractor
A class to lazily instantiate a native JDBC extractor.
We need to lazily instantiate it because otherwise Spring will construct it for us, and users might get class not found errors (eg if they're
not using Weblogic and Spring tries to load the WeblogicNativeJdbcExtractor, things get ugly).
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LazyNativeJdbcExtractor
public LazyNativeJdbcExtractor()
setExtractorClass
public void setExtractorClass(java.lang.Class extractorClass)
isNativeConnectionNecessaryForNativeStatements
public boolean isNativeConnectionNecessaryForNativeStatements()
- Specified by:
isNativeConnectionNecessaryForNativeStatements in interface org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractor
isNativeConnectionNecessaryForNativePreparedStatements
public boolean isNativeConnectionNecessaryForNativePreparedStatements()
- Specified by:
isNativeConnectionNecessaryForNativePreparedStatements in interface org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractor
isNativeConnectionNecessaryForNativeCallableStatements
public boolean isNativeConnectionNecessaryForNativeCallableStatements()
- Specified by:
isNativeConnectionNecessaryForNativeCallableStatements in interface org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractor
getNativeConnection
public java.sql.Connection getNativeConnection(java.sql.Connection con)
throws java.sql.SQLException
- Specified by:
getNativeConnection in interface org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractor
- Throws:
java.sql.SQLException
getNativeConnectionFromStatement
public java.sql.Connection getNativeConnectionFromStatement(java.sql.Statement stmt)
throws java.sql.SQLException
- Specified by:
getNativeConnectionFromStatement in interface org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractor
- Throws:
java.sql.SQLException
getNativeStatement
public java.sql.Statement getNativeStatement(java.sql.Statement stmt)
throws java.sql.SQLException
- Specified by:
getNativeStatement in interface org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractor
- Throws:
java.sql.SQLException
getNativePreparedStatement
public java.sql.PreparedStatement getNativePreparedStatement(java.sql.PreparedStatement ps)
throws java.sql.SQLException
- Specified by:
getNativePreparedStatement in interface org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractor
- Throws:
java.sql.SQLException
getNativeCallableStatement
public java.sql.CallableStatement getNativeCallableStatement(java.sql.CallableStatement cs)
throws java.sql.SQLException
- Specified by:
getNativeCallableStatement in interface org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractor
- Throws:
java.sql.SQLException
getNativeResultSet
public java.sql.ResultSet getNativeResultSet(java.sql.ResultSet rs)
throws java.sql.SQLException
- Specified by:
getNativeResultSet in interface org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractor
- Throws:
java.sql.SQLException
Copyright © 2006-2011 Atlassian. All Rights Reserved.