@@ -137,7 +137,8 @@ public interface JdbcOperations {
137137 * {@code null} as argument array.
138138 * @param sql SQL query to execute
139139 * @param rowMapper object that will map one object per row
140- * @return the single mapped object
140+ * @return the single mapped object (may be {@code null} if the given
141+ * {@link RowMapper} returned {@code} null)
141142 * @throws IncorrectResultSizeDataAccessException if the query does not
142143 * return exactly one row
143144 * @throws DataAccessException if there is any problem executing the query
@@ -359,6 +360,7 @@ public interface JdbcOperations {
359360 * only the argument value but also the SQL type and optionally the scale
360361 * @return an arbitrary result object, as returned by the ResultSetExtractor
361362 * @throws DataAccessException if the query fails
363+ * @since 3.0.1
362364 */
363365 <T > T query (String sql , ResultSetExtractor <T > rse , Object ... args ) throws DataAccessException ;
364366
@@ -428,6 +430,7 @@ public interface JdbcOperations {
428430 * may also contain {@link SqlParameterValue} objects which indicate not
429431 * only the argument value but also the SQL type and optionally the scale
430432 * @throws DataAccessException if the query fails
433+ * @since 3.0.1
431434 */
432435 void query (String sql , RowCallbackHandler rch , Object ... args ) throws DataAccessException ;
433436
@@ -501,6 +504,7 @@ public interface JdbcOperations {
501504 * only the argument value but also the SQL type and optionally the scale
502505 * @return the result List, containing mapped objects
503506 * @throws DataAccessException if the query fails
507+ * @since 3.0.1
504508 */
505509 <T > List <T > query (String sql , RowMapper <T > rowMapper , Object ... args ) throws DataAccessException ;
506510
@@ -514,7 +518,8 @@ public interface JdbcOperations {
514518 * @param argTypes SQL types of the arguments
515519 * (constants from {@code java.sql.Types})
516520 * @param rowMapper object that will map one object per row
517- * @return the single mapped object
521+ * @return the single mapped object (may be {@code null} if the given
522+ * {@link RowMapper} returned {@code} null)
518523 * @throws IncorrectResultSizeDataAccessException if the query does not
519524 * return exactly one row
520525 * @throws DataAccessException if the query fails
@@ -532,7 +537,8 @@ <T> T queryForObject(String sql, Object[] args, int[] argTypes, RowMapper<T> row
532537 * may also contain {@link SqlParameterValue} objects which indicate not
533538 * only the argument value but also the SQL type and optionally the scale
534539 * @param rowMapper object that will map one object per row
535- * @return the single mapped object
540+ * @return the single mapped object (may be {@code null} if the given
541+ * {@link RowMapper} returned {@code} null)
536542 * @throws IncorrectResultSizeDataAccessException if the query does not
537543 * return exactly one row
538544 * @throws DataAccessException if the query fails
@@ -549,10 +555,12 @@ <T> T queryForObject(String sql, Object[] args, int[] argTypes, RowMapper<T> row
549555 * (leaving it to the PreparedStatement to guess the corresponding SQL type);
550556 * may also contain {@link SqlParameterValue} objects which indicate not
551557 * only the argument value but also the SQL type and optionally the scale
552- * @return the single mapped object
558+ * @return the single mapped object (may be {@code null} if the given
559+ * {@link RowMapper} returned {@code} null)
553560 * @throws IncorrectResultSizeDataAccessException if the query does not
554561 * return exactly one row
555562 * @throws DataAccessException if the query fails
563+ * @since 3.0.1
556564 */
557565 <T > T queryForObject (String sql , RowMapper <T > rowMapper , Object ... args ) throws DataAccessException ;
558566
@@ -610,6 +618,7 @@ <T> T queryForObject(String sql, Object[] args, int[] argTypes, Class<T> require
610618 * @throws IncorrectResultSizeDataAccessException if the query does not return
611619 * exactly one row, or does not return exactly one column in that row
612620 * @throws DataAccessException if the query fails
621+ * @since 3.0.1
613622 * @see #queryForObject(String, Class)
614623 */
615624 <T > T queryForObject (String sql , Class <T > requiredType , Object ... args ) throws DataAccessException ;
@@ -709,6 +718,7 @@ <T>List<T> queryForList(String sql, Object[] args, int[] argTypes, Class<T> elem
709718 * only the argument value but also the SQL type and optionally the scale
710719 * @return a List of objects that match the specified element type
711720 * @throws DataAccessException if the query fails
721+ * @since 3.0.1
712722 * @see #queryForList(String, Class)
713723 * @see SingleColumnRowMapper
714724 */
0 commit comments