|
|
|
|
@ -369,7 +369,9 @@ public interface JdbcOperations {
@@ -369,7 +369,9 @@ 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 |
|
|
|
|
@Nullable |
|
|
|
|
<T> T query(String sql, @Nullable Object[] args, ResultSetExtractor<T> rse) throws DataAccessException; |
|
|
|
|
|
|
|
|
|
@ -440,7 +442,9 @@ public interface JdbcOperations {
@@ -440,7 +442,9 @@ 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 |
|
|
|
|
void query(String sql, @Nullable Object[] args, RowCallbackHandler rch) throws DataAccessException; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
@ -514,7 +518,9 @@ public interface JdbcOperations {
@@ -514,7 +518,9 @@ 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 |
|
|
|
|
<T> List<T> query(String sql, @Nullable Object[] args, RowMapper<T> rowMapper) throws DataAccessException; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
@ -620,7 +626,9 @@ public interface JdbcOperations {
@@ -620,7 +626,9 @@ public interface JdbcOperations {
|
|
|
|
|
* @throws 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 |
|
|
|
|
@Nullable |
|
|
|
|
<T> T queryForObject(String sql, @Nullable Object[] args, RowMapper<T> rowMapper) throws DataAccessException; |
|
|
|
|
|
|
|
|
|
@ -681,7 +689,9 @@ public interface JdbcOperations {
@@ -681,7 +689,9 @@ public interface JdbcOperations {
|
|
|
|
|
* exactly one row, or does not return exactly one column in that row |
|
|
|
|
* @throws DataAccessException if the query fails |
|
|
|
|
* @see #queryForObject(String, Class) |
|
|
|
|
* @deprecated as of 5.3, in favor of {@link #queryForObject(String, Class, Object...)} |
|
|
|
|
*/ |
|
|
|
|
@Deprecated |
|
|
|
|
@Nullable |
|
|
|
|
<T> T queryForObject(String sql, @Nullable Object[] args, Class<T> requiredType) throws DataAccessException; |
|
|
|
|
|
|
|
|
|
@ -783,7 +793,9 @@ public interface JdbcOperations {
@@ -783,7 +793,9 @@ 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 |
|
|
|
|
<T> List<T> queryForList(String sql, @Nullable Object[] args, Class<T> elementType) throws DataAccessException; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|