com.atlassian.spring
Class AutomaticJdbcExtractor
java.lang.Object
com.atlassian.spring.AutomaticJdbcExtractor
- All Implemented Interfaces:
- org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractor
public class AutomaticJdbcExtractor
- extends java.lang.Object
- implements org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractor
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AutomaticJdbcExtractor
public AutomaticJdbcExtractor()
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
- When this method is called, the connection object passed in is checked to determine
what type of connection pooling is being used (based on class prefix)
Once we find out what pooling is used we then set the jdbcExtractor field to the appropriate
extractor and delegate all method calls to this extractor
- Specified by:
getNativeConnection in interface org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractor
- Parameters:
con -
- Returns:
-
- 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
getExtractors
public java.util.Map getExtractors()
setExtractors
public void setExtractors(java.util.Map extractors)
getDefaultJdbcExtractor
public org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractor getDefaultJdbcExtractor()
setDefaultJdbcExtractor
public void setDefaultJdbcExtractor(org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractor defaultJdbcExtractor)
Copyright © 2006-2011 Atlassian. All Rights Reserved.