Browse Source

Deprecate unused "rowsExpected" property of SqlQuery for removal

See gh-34526

Signed-off-by: Yanming Zhou <zhouyanming@gmail.com>
pull/34656/head
Yanming Zhou 11 months ago committed by Sam Brannen
parent
commit
78cc5df748
  1. 6
      spring-jdbc/src/main/java/org/springframework/jdbc/object/SqlQuery.java

6
spring-jdbc/src/main/java/org/springframework/jdbc/object/SqlQuery.java

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*
* Copyright 2002-2018 the original author or authors.
* Copyright 2002-2025 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -84,14 +84,18 @@ public abstract class SqlQuery<T> extends SqlOperation { @@ -84,14 +84,18 @@ public abstract class SqlQuery<T> extends SqlOperation {
* Set the number of rows expected.
* <p>This can be used to ensure efficient storage of results. The
* default behavior is not to expect any specific number of rows.
* @deprecated since 6.2.4 with no replacement; it's for internal use only
*/
@Deprecated(since = "6.2.4", forRemoval = true)
public void setRowsExpected(int rowsExpected) {
this.rowsExpected = rowsExpected;
}
/**
* Get the number of rows expected.
* @deprecated since 6.2.4 with no replacement; it's for internal use only
*/
@Deprecated(since = "6.2.4", forRemoval = true)
public int getRowsExpected() {
return this.rowsExpected;
}

Loading…
Cancel
Save