1 16 17 package org.springframework.jdbc.support.nativejdbc; 18 19 import java.sql.Connection ; 20 import java.sql.SQLException ; 21 22 import org.apache.commons.logging.Log; 23 import org.apache.commons.logging.LogFactory; 24 25 81 public class SimpleNativeJdbcExtractor extends NativeJdbcExtractorAdapter { 82 83 private boolean nativeConnectionNecessaryForNativeStatements = false; 84 85 private boolean nativeConnectionNecessaryForNativePreparedStatements = false; 86 87 private boolean nativeConnectionNecessaryForNativeCallableStatements = false; 88 89 90 102 public void setNativeConnectionNecessaryForNativeStatements(boolean nativeConnectionNecessaryForNativeStatements) { 103 this.nativeConnectionNecessaryForNativeStatements = nativeConnectionNecessaryForNativeStatements; 104 } 105 106 public boolean isNativeConnectionNecessaryForNativeStatements() { 107 return nativeConnectionNecessaryForNativeStatements; 108 } 109 110 122 public void setNativeConnectionNecessaryForNativePreparedStatements(boolean nativeConnectionNecessary) { 123 this.nativeConnectionNecessaryForNativePreparedStatements = nativeConnectionNecessary; 124 } 125 126 public boolean isNativeConnectionNecessaryForNativePreparedStatements() { 127 return nativeConnectionNecessaryForNativePreparedStatements; 128 } 129 130 142 public void setNativeConnectionNecessaryForNativeCallableStatements(boolean nativeConnectionNecessary) { 143 this.nativeConnectionNecessaryForNativeCallableStatements = nativeConnectionNecessary; 144 } 145 146 public boolean isNativeConnectionNecessaryForNativeCallableStatements() { 147 return nativeConnectionNecessaryForNativeCallableStatements; 148 } 149 150 } 151 | Popular Tags |