You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jdbc/JdbcProperties.java
+19-24
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,6 @@
27
27
*
28
28
* @author Kazuki Shimizu
29
29
* @author Stephane Nicoll
30
-
* @author Yanming Zhou
31
30
* @since 2.0.0
32
31
*/
33
32
@ConfigurationProperties("spring.jdbc")
@@ -44,6 +43,12 @@ public Template getTemplate() {
44
43
*/
45
44
publicstaticclassTemplate {
46
45
46
+
/**
47
+
* Whether to ignore JDBC statement warnings (SQLWarning). When set to false,
48
+
* throw a SQLWarningException instead.
49
+
*/
50
+
privatebooleanignoreWarnings = true;
51
+
47
52
/**
48
53
* Number of rows that should be fetched from the database when more rows are
49
54
* needed. Use -1 to use the JDBC driver's default configuration.
@@ -63,32 +68,30 @@ public static class Template {
63
68
privateDurationqueryTimeout;
64
69
65
70
/**
66
-
* If this variable is {@code false}, we will throw exceptions on SQL warnings.
67
-
*/
68
-
privatebooleanignoreWarnings = true;
69
-
70
-
/**
71
-
* If this variable is set to true, then all results checking will be bypassed for
72
-
* any callable statement processing. This can be used to avoid a bug in some
73
-
* older Oracle JDBC drivers like 10.1.0.2.
71
+
* Whether results processing should be skipped. Can be used to optimize callable
72
+
* statement processing when we know that no results are being passed back.
74
73
*/
75
74
privatebooleanskipResultsProcessing;
76
75
77
76
/**
78
-
* If this variable is set to true then all results from a stored procedure call
79
-
* that don't have a corresponding SqlOutParameter declaration will be bypassed.
80
-
* All other results processing will be take place unless the variable
81
-
* {@code skipResultsProcessing} is set to {@code true}.
77
+
* Whether undeclared results should be skipped.
82
78
*/
83
79
privatebooleanskipUndeclaredResults;
84
80
85
81
/**
86
-
* If this variable is set to true then execution of a CallableStatement will
87
-
* return the results in a Map that uses case-insensitive names for the
88
-
* parameters.
82
+
* Whether execution of a CallableStatement will return the results in a Map that
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jdbc/JdbcTemplateConfiguration.java
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/jdbc/JdbcTemplateAutoConfigurationTests.java
0 commit comments