|
1 | 1 | /*
|
2 |
| - * Copyright 2002-2019 the original author or authors. |
| 2 | + * Copyright 2002-2020 the original author or authors. |
3 | 3 | *
|
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
5 | 5 | * you may not use this file except in compliance with the License.
|
@@ -353,7 +353,7 @@ public interface JdbcOperations {
|
353 | 353 | * @throws DataAccessException if the query fails
|
354 | 354 | */
|
355 | 355 | @Nullable
|
356 |
| - <T> T query(String sql, Object[] args, ResultSetExtractor<T> rse) throws DataAccessException; |
| 356 | + <T> T query(String sql, @Nullable Object[] args, ResultSetExtractor<T> rse) throws DataAccessException; |
357 | 357 |
|
358 | 358 | /**
|
359 | 359 | * Query given SQL to create a prepared statement from SQL and a list of arguments
|
@@ -423,7 +423,7 @@ public interface JdbcOperations {
|
423 | 423 | * @param rch a callback that will extract results, one row at a time
|
424 | 424 | * @throws DataAccessException if the query fails
|
425 | 425 | */
|
426 |
| - void query(String sql, Object[] args, RowCallbackHandler rch) throws DataAccessException; |
| 426 | + void query(String sql, @Nullable Object[] args, RowCallbackHandler rch) throws DataAccessException; |
427 | 427 |
|
428 | 428 | /**
|
429 | 429 | * Query given SQL to create a prepared statement from SQL and a list of
|
@@ -496,7 +496,7 @@ public interface JdbcOperations {
|
496 | 496 | * @return the result List, containing mapped objects
|
497 | 497 | * @throws DataAccessException if the query fails
|
498 | 498 | */
|
499 |
| - <T> List<T> query(String sql, Object[] args, RowMapper<T> rowMapper) throws DataAccessException; |
| 499 | + <T> List<T> query(String sql, @Nullable Object[] args, RowMapper<T> rowMapper) throws DataAccessException; |
500 | 500 |
|
501 | 501 | /**
|
502 | 502 | * Query given SQL to create a prepared statement from SQL and a list of
|
@@ -551,7 +551,7 @@ <T> T queryForObject(String sql, Object[] args, int[] argTypes, RowMapper<T> row
|
551 | 551 | * @throws DataAccessException if the query fails
|
552 | 552 | */
|
553 | 553 | @Nullable
|
554 |
| - <T> T queryForObject(String sql, Object[] args, RowMapper<T> rowMapper) throws DataAccessException; |
| 554 | + <T> T queryForObject(String sql, @Nullable Object[] args, RowMapper<T> rowMapper) throws DataAccessException; |
555 | 555 |
|
556 | 556 | /**
|
557 | 557 | * Query given SQL to create a prepared statement from SQL and a list
|
@@ -612,7 +612,7 @@ <T> T queryForObject(String sql, Object[] args, int[] argTypes, Class<T> require
|
612 | 612 | * @see #queryForObject(String, Class)
|
613 | 613 | */
|
614 | 614 | @Nullable
|
615 |
| - <T> T queryForObject(String sql, Object[] args, Class<T> requiredType) throws DataAccessException; |
| 615 | + <T> T queryForObject(String sql, @Nullable Object[] args, Class<T> requiredType) throws DataAccessException; |
616 | 616 |
|
617 | 617 | /**
|
618 | 618 | * Query given SQL to create a prepared statement from SQL and a list of
|
@@ -713,7 +713,7 @@ <T> List<T> queryForList(String sql, Object[] args, int[] argTypes, Class<T> ele
|
713 | 713 | * @see #queryForList(String, Class)
|
714 | 714 | * @see SingleColumnRowMapper
|
715 | 715 | */
|
716 |
| - <T> List<T> queryForList(String sql, Object[] args, Class<T> elementType) throws DataAccessException; |
| 716 | + <T> List<T> queryForList(String sql, @Nullable Object[] args, Class<T> elementType) throws DataAccessException; |
717 | 717 |
|
718 | 718 | /**
|
719 | 719 | * Query given SQL to create a prepared statement from SQL and a list of
|
|
0 commit comments