Polishing contribution

Closes gh-34942
This commit is contained in:
rstoyanchev
2025-06-04 13:17:52 +01:00
parent f9fa7cc93b
commit 230540b6da
34 changed files with 71 additions and 77 deletions

View File

@@ -367,7 +367,7 @@ public interface JdbcOperations {
* @param rse a callback that will extract results
* @return an arbitrary result object, as returned by the ResultSetExtractor
* @throws DataAccessException if the query fails
* @deprecated as of 5.3, in favor of {@link #query(String, ResultSetExtractor, Object...)}
* @deprecated in favor of {@link #query(String, ResultSetExtractor, Object...)}
*/
@Deprecated(since = "5.3")
<T> @Nullable T query(String sql, @Nullable Object @Nullable [] args, ResultSetExtractor<T> rse) throws DataAccessException;
@@ -438,7 +438,7 @@ public interface JdbcOperations {
* only the argument value but also the SQL type and optionally the scale
* @param rch a callback that will extract results, one row at a time
* @throws DataAccessException if the query fails
* @deprecated as of 5.3, in favor of {@link #query(String, RowCallbackHandler, Object...)}
* @deprecated in favor of {@link #query(String, RowCallbackHandler, Object...)}
*/
@Deprecated(since = "5.3")
void query(String sql, @Nullable Object @Nullable [] args, RowCallbackHandler rch) throws DataAccessException;
@@ -514,7 +514,7 @@ public interface JdbcOperations {
* @param rowMapper a callback that will map one object per row
* @return the result List, containing mapped objects
* @throws DataAccessException if the query fails
* @deprecated as of 5.3, in favor of {@link #query(String, RowMapper, Object...)}
* @deprecated in favor of {@link #query(String, RowMapper, Object...)}
*/
@Deprecated(since = "5.3")
<T> List<T> query(String sql, @Nullable Object @Nullable [] args, RowMapper<T> rowMapper) throws DataAccessException;
@@ -621,7 +621,7 @@ public interface JdbcOperations {
* @throws org.springframework.dao.IncorrectResultSizeDataAccessException
* if the query does not return exactly one row
* @throws DataAccessException if the query fails
* @deprecated as of 5.3, in favor of {@link #queryForObject(String, RowMapper, Object...)}
* @deprecated in favor of {@link #queryForObject(String, RowMapper, Object...)}
*/
@Deprecated(since = "5.3")
<T> @Nullable T queryForObject(String sql, @Nullable Object @Nullable [] args, RowMapper<T> rowMapper) throws DataAccessException;
@@ -685,7 +685,7 @@ public interface JdbcOperations {
* if the query does not return a row containing a single column
* @throws DataAccessException if the query fails
* @see #queryForObject(String, Class)
* @deprecated as of 5.3, in favor of {@link #queryForObject(String, Class, Object...)}
* @deprecated in favor of {@link #queryForObject(String, Class, Object...)}
*/
@Deprecated(since = "5.3")
<T> @Nullable T queryForObject(String sql, @Nullable Object @Nullable [] args, Class<T> requiredType) throws DataAccessException;
@@ -789,7 +789,7 @@ public interface JdbcOperations {
* @throws DataAccessException if the query fails
* @see #queryForList(String, Class)
* @see SingleColumnRowMapper
* @deprecated as of 5.3, in favor of {@link #queryForList(String, Class, Object...)}
* @deprecated in favor of {@link #queryForList(String, Class, Object...)}
*/
@Deprecated(since = "5.3")
<T> List<T> queryForList(String sql, @Nullable Object @Nullable [] args, Class<T> elementType) throws DataAccessException;

View File

@@ -42,8 +42,8 @@ import org.springframework.util.Assert;
* @author Juergen Hoeller
* @see #loadBeanDefinitions
* @see org.springframework.beans.factory.support.PropertiesBeanDefinitionReader
* @deprecated as of 5.3, in favor of Spring's common bean definition formats
* and/or custom reader implementations
* @deprecated in favor of Spring's common bean definition formats and/or custom
* reader implementations
*/
@Deprecated(since = "5.3")
public class JdbcBeanDefinitionReader {

View File

@@ -263,8 +263,7 @@ public abstract class DataSourceUtils {
* regarding read-only flag and isolation level.
* @param con the Connection to reset
* @param previousIsolationLevel the isolation level to restore, if any
* @deprecated as of 5.1.11, in favor of
* {@link #resetConnectionAfterTransaction(Connection, Integer, boolean)}
* @deprecated in favor of {@link #resetConnectionAfterTransaction(Connection, Integer, boolean)}
*/
@Deprecated(since = "5.1.11")
public static void resetConnectionAfterTransaction(Connection con, @Nullable Integer previousIsolationLevel) {

View File

@@ -75,7 +75,7 @@ public class DatabaseStartupValidator implements InitializingBean {
/**
* Set the SQL query string to use for validation.
* @deprecated as of 5.3, in favor of the JDBC 4.0 connection validation
* @deprecated in favor of the JDBC 4.0 connection validation
*/
@Deprecated(since = "5.3")
public void setValidationQuery(String validationQuery) {

View File

@@ -375,7 +375,7 @@ public abstract class JdbcUtils {
* @throws MetaDataAccessException if we couldn't access the DatabaseMetaData
* or failed to invoke the specified method
* @see java.sql.DatabaseMetaData
* @deprecated as of 5.2.9, in favor of
* @deprecated in favor of
* {@link #extractDatabaseMetaData(DataSource, DatabaseMetaDataCallback)}
* with a lambda expression or method reference and a generically typed result
*/