mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-10-01 11:49:04 +00:00
Add additional javadoc notes on 7.0
See gh-34709 See gh-34757
This commit is contained in:
@@ -126,6 +126,7 @@ public interface Scope {
|
||||
/**
|
||||
* Resolve the contextual object for the given key, if any.
|
||||
* For example, the HttpServletRequest object for key "request".
|
||||
* <p>Since 7.0, this interface method returns {@code null} by default.
|
||||
* @param key the contextual key
|
||||
* @return the corresponding object, or {@code null} if none found
|
||||
* @throws IllegalStateException if the underlying scope is not currently active
|
||||
@@ -145,6 +146,7 @@ public interface Scope {
|
||||
* <p><b>Note: This is an optional operation.</b> It is perfectly valid to
|
||||
* return {@code null} in an implementation of this method if the
|
||||
* underlying storage mechanism has no obvious candidate for such an ID.
|
||||
* <p>Since 7.0, this interface method returns {@code null} by default.
|
||||
* @return the conversation ID, or {@code null} if there is no
|
||||
* conversation ID for the current scope
|
||||
* @throws IllegalStateException if the underlying scope is not currently active
|
||||
|
||||
@@ -246,8 +246,8 @@ public class JdbcTemplate extends JdbcAccessor implements JdbcOperations {
|
||||
* row data that will never be read by the application.
|
||||
* <p>Default is -1, indicating to use the JDBC driver's default configuration
|
||||
* (i.e. to not pass a specific fetch size setting on to the driver).
|
||||
* <p>Note: As of 4.3, negative values other than -1 will get passed on to the
|
||||
* driver, since, for example, MySQL supports special behavior for {@code Integer.MIN_VALUE}.
|
||||
* <p>Note: As of 4.3, negative values other than -1 will get passed on to the driver,
|
||||
* since, for example, MySQL supports special behavior for {@code Integer.MIN_VALUE}.
|
||||
* @see java.sql.Statement#setFetchSize
|
||||
*/
|
||||
public void setFetchSize(int fetchSize) {
|
||||
|
||||
+2
-1
@@ -91,7 +91,8 @@ public class RowMapperResultSetExtractor<T> implements ResultSetExtractor<List<T
|
||||
* @param rowMapper the RowMapper which creates an object for each row
|
||||
* @param rowsExpected the number of expected rows
|
||||
* (just used for optimized collection handling)
|
||||
* @param maxRows the number of max rows
|
||||
* @param maxRows the number of max rows (or -1 for the driver's default)
|
||||
* @since 7.0
|
||||
*/
|
||||
public RowMapperResultSetExtractor(RowMapper<T> rowMapper, int rowsExpected, int maxRows) {
|
||||
Assert.notNull(rowMapper, "RowMapper must not be null");
|
||||
|
||||
Reference in New Issue
Block a user