|
|
|
|
@ -27,7 +27,6 @@ import org.springframework.boot.convert.DurationUnit;
@@ -27,7 +27,6 @@ import org.springframework.boot.convert.DurationUnit;
|
|
|
|
|
* |
|
|
|
|
* @author Kazuki Shimizu |
|
|
|
|
* @author Stephane Nicoll |
|
|
|
|
* @author Yanming Zhou |
|
|
|
|
* @since 2.0.0 |
|
|
|
|
*/ |
|
|
|
|
@ConfigurationProperties("spring.jdbc") |
|
|
|
|
@ -44,6 +43,12 @@ public class JdbcProperties {
@@ -44,6 +43,12 @@ public class JdbcProperties {
|
|
|
|
|
*/ |
|
|
|
|
public static class Template { |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Whether to ignore JDBC statement warnings (SQLWarning). When set to false, |
|
|
|
|
* throw a SQLWarningException instead. |
|
|
|
|
*/ |
|
|
|
|
private boolean ignoreWarnings = true; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Number of rows that should be fetched from the database when more rows are |
|
|
|
|
* needed. Use -1 to use the JDBC driver's default configuration. |
|
|
|
|
@ -63,32 +68,30 @@ public class JdbcProperties {
@@ -63,32 +68,30 @@ public class JdbcProperties {
|
|
|
|
|
private Duration queryTimeout; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* If this variable is {@code false}, we will throw exceptions on SQL warnings. |
|
|
|
|
*/ |
|
|
|
|
private boolean ignoreWarnings = true; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* If this variable is set to true, then all results checking will be bypassed for |
|
|
|
|
* any callable statement processing. This can be used to avoid a bug in some |
|
|
|
|
* older Oracle JDBC drivers like 10.1.0.2. |
|
|
|
|
* Whether results processing should be skipped. Can be used to optimize callable |
|
|
|
|
* statement processing when we know that no results are being passed back. |
|
|
|
|
*/ |
|
|
|
|
private boolean skipResultsProcessing; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* If this variable is set to true then all results from a stored procedure call |
|
|
|
|
* that don't have a corresponding SqlOutParameter declaration will be bypassed. |
|
|
|
|
* All other results processing will be take place unless the variable |
|
|
|
|
* {@code skipResultsProcessing} is set to {@code true}. |
|
|
|
|
* Whether undeclared results should be skipped. |
|
|
|
|
*/ |
|
|
|
|
private boolean skipUndeclaredResults; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* If this variable is set to true then execution of a CallableStatement will |
|
|
|
|
* return the results in a Map that uses case-insensitive names for the |
|
|
|
|
* parameters. |
|
|
|
|
* Whether execution of a CallableStatement will return the results in a Map that |
|
|
|
|
* uses case-insensitive names for the parameters. |
|
|
|
|
*/ |
|
|
|
|
private boolean resultsMapCaseInsensitive; |
|
|
|
|
|
|
|
|
|
public boolean isIgnoreWarnings() { |
|
|
|
|
return this.ignoreWarnings; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void setIgnoreWarnings(boolean ignoreWarnings) { |
|
|
|
|
this.ignoreWarnings = ignoreWarnings; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public int getFetchSize() { |
|
|
|
|
return this.fetchSize; |
|
|
|
|
} |
|
|
|
|
@ -113,14 +116,6 @@ public class JdbcProperties {
@@ -113,14 +116,6 @@ public class JdbcProperties {
|
|
|
|
|
this.queryTimeout = queryTimeout; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public boolean isIgnoreWarnings() { |
|
|
|
|
return this.ignoreWarnings; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void setIgnoreWarnings(boolean ignoreWarnings) { |
|
|
|
|
this.ignoreWarnings = ignoreWarnings; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public boolean isSkipResultsProcessing() { |
|
|
|
|
return this.skipResultsProcessing; |
|
|
|
|
} |
|
|
|
|
|