From abb178d0d5a17a10aeff89ff865d04cdde8c0d25 Mon Sep 17 00:00:00 2001 From: Jorg Heymans Date: Tue, 12 Mar 2019 08:20:10 +0100 Subject: [PATCH] Align RdbmsOperation javadoc with jdbcTemplate defaults See gh-22572 --- .../org/springframework/jdbc/object/RdbmsOperation.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spring-jdbc/src/main/java/org/springframework/jdbc/object/RdbmsOperation.java b/spring-jdbc/src/main/java/org/springframework/jdbc/object/RdbmsOperation.java index 21770d029e..0909610435 100644 --- a/spring-jdbc/src/main/java/org/springframework/jdbc/object/RdbmsOperation.java +++ b/spring-jdbc/src/main/java/org/springframework/jdbc/object/RdbmsOperation.java @@ -118,7 +118,7 @@ public abstract class RdbmsOperation implements InitializingBean { * large result sets: Setting this higher than the default value will increase * processing speed at the cost of memory consumption; setting this lower can * avoid transferring row data that will never be read by the application. - *

Default is 0, indicating to use the driver's default. + *

Default is -1, indicating to use the driver's default. * @see org.springframework.jdbc.core.JdbcTemplate#setFetchSize */ public void setFetchSize(int fetchSize) { @@ -129,7 +129,7 @@ public abstract class RdbmsOperation implements InitializingBean { * Set the maximum number of rows for this RDBMS operation. This is important * for processing subsets of large result sets, avoiding to read and hold * the entire result set in the database or in the JDBC driver. - *

Default is 0, indicating to use the driver's default. + *

Default is -1, indicating to use the driver's default. * @see org.springframework.jdbc.core.JdbcTemplate#setMaxRows */ public void setMaxRows(int maxRows) { @@ -138,7 +138,7 @@ public abstract class RdbmsOperation implements InitializingBean { /** * Set the query timeout for statements that this RDBMS operation executes. - *

Default is 0, indicating to use the JDBC driver's default. + *

Default is -1, indicating to use the JDBC driver's default. *

Note: Any timeout specified here will be overridden by the remaining * transaction timeout when executing within a transaction that has a * timeout specified at the transaction level. -- GitLab