@@ -166,14 +166,14 @@ public interface JdbcOperations {
166
166
<T > T queryForObject (String sql , Class <T > requiredType ) throws DataAccessException ;
167
167
168
168
/**
169
- * Execute a query for a result Map , given static SQL.
169
+ * Execute a query for a result map , given static SQL.
170
170
* <p>Uses a JDBC Statement, not a PreparedStatement. If you want to
171
171
* execute a static query with a PreparedStatement, use the overloaded
172
172
* {@link #queryForMap(String, Object...)} method with {@code null}
173
173
* as argument array.
174
174
* <p>The query is expected to be a single row query; the result row will be
175
175
* mapped to a Map (one entry for each column, using the column name as the key).
176
- * @param sql SQL query to execute
176
+ * @param sql the SQL query to execute
177
177
* @return the result Map (one entry per column, with column name as key)
178
178
* @throws IncorrectResultSizeDataAccessException if the query does not
179
179
* return exactly one row
@@ -208,7 +208,7 @@ public interface JdbcOperations {
208
208
* <p>The results will be mapped to a List (one entry for each row) of
209
209
* Maps (one entry for each column using the column name as the key).
210
210
* Each element in the list will be of the form returned by this interface's
211
- * queryForMap() methods.
211
+ * {@code queryForMap} methods.
212
212
* @param sql the SQL query to execute
213
213
* @return an List that contains a Map per row
214
214
* @throws DataAccessException if there is any problem executing the query
@@ -558,8 +558,8 @@ <T> T queryForObject(String sql, Object[] args, int[] argTypes, RowMapper<T> row
558
558
<T > T queryForObject (String sql , RowMapper <T > rowMapper , Object ... args ) throws DataAccessException ;
559
559
560
560
/**
561
- * Query given SQL to create a prepared statement from SQL and a
562
- * list of arguments to bind to the query, expecting a result object.
561
+ * Query given SQL to create a prepared statement from SQL and a list of
562
+ * arguments to bind to the query, expecting a result object.
563
563
* <p>The query is expected to be a single row/single column query; the returned
564
564
* result will be directly mapped to the corresponding object type.
565
565
* @param sql the SQL query to execute
@@ -578,8 +578,8 @@ <T> T queryForObject(String sql, Object[] args, int[] argTypes, Class<T> require
578
578
throws DataAccessException ;
579
579
580
580
/**
581
- * Query given SQL to create a prepared statement from SQL and a
582
- * list of arguments to bind to the query, expecting a result object.
581
+ * Query given SQL to create a prepared statement from SQL and a list of
582
+ * arguments to bind to the query, expecting a result object.
583
583
* <p>The query is expected to be a single row/single column query; the returned
584
584
* result will be directly mapped to the corresponding object type.
585
585
* @param sql the SQL query to execute
@@ -597,8 +597,8 @@ <T> T queryForObject(String sql, Object[] args, int[] argTypes, Class<T> require
597
597
<T > T queryForObject (String sql , Object [] args , Class <T > requiredType ) throws DataAccessException ;
598
598
599
599
/**
600
- * Query given SQL to create a prepared statement from SQL and a
601
- * list of arguments to bind to the query, expecting a result object.
600
+ * Query given SQL to create a prepared statement from SQL and a list of
601
+ * arguments to bind to the query, expecting a result object.
602
602
* <p>The query is expected to be a single row/single column query; the returned
603
603
* result will be directly mapped to the corresponding object type.
604
604
* @param sql the SQL query to execute
@@ -617,8 +617,8 @@ <T> T queryForObject(String sql, Object[] args, int[] argTypes, Class<T> require
617
617
<T > T queryForObject (String sql , Class <T > requiredType , Object ... args ) throws DataAccessException ;
618
618
619
619
/**
620
- * Query given SQL to create a prepared statement from SQL and a
621
- * list of arguments to bind to the query, expecting a result Map .
620
+ * Query given SQL to create a prepared statement from SQL and a list of
621
+ * arguments to bind to the query, expecting a result map .
622
622
* <p>The query is expected to be a single row query; the result row will be
623
623
* mapped to a Map (one entry for each column, using the column name as the key).
624
624
* @param sql the SQL query to execute
@@ -636,11 +636,11 @@ <T> T queryForObject(String sql, Object[] args, int[] argTypes, Class<T> require
636
636
Map <String , Object > queryForMap (String sql , Object [] args , int [] argTypes ) throws DataAccessException ;
637
637
638
638
/**
639
- * Query given SQL to create a prepared statement from SQL and a
640
- * list of arguments to bind to the query, expecting a result Map .
641
- * The queryForMap() methods defined by this interface are appropriate
642
- * when you don't have a domain model. Otherwise, consider using
643
- * one of the queryForObject() methods.
639
+ * Query given SQL to create a prepared statement from SQL and a list of
640
+ * arguments to bind to the query, expecting a result map .
641
+ * <p> The {@code queryForMap} methods defined by this interface are appropriate
642
+ * when you don't have a domain model. Otherwise, consider using one of the
643
+ * {@code queryForObject} methods.
644
644
* <p>The query is expected to be a single row query; the result row will be
645
645
* mapped to a Map (one entry for each column, using the column name as the key).
646
646
* @param sql the SQL query to execute
@@ -659,8 +659,8 @@ <T> T queryForObject(String sql, Object[] args, int[] argTypes, Class<T> require
659
659
Map <String , Object > queryForMap (String sql , Object ... args ) throws DataAccessException ;
660
660
661
661
/**
662
- * Query given SQL to create a prepared statement from SQL and a
663
- * list of arguments to bind to the query, expecting a result list.
662
+ * Query given SQL to create a prepared statement from SQL and a list of
663
+ * arguments to bind to the query, expecting a result list.
664
664
* <p>The results will be mapped to a List (one entry for each row) of
665
665
* result objects, each of them matching the specified element type.
666
666
* @param sql the SQL query to execute
@@ -674,12 +674,12 @@ <T> T queryForObject(String sql, Object[] args, int[] argTypes, Class<T> require
674
674
* @see #queryForList(String, Class)
675
675
* @see SingleColumnRowMapper
676
676
*/
677
- <T >List <T > queryForList (String sql , Object [] args , int [] argTypes , Class <T > elementType )
677
+ <T > List <T > queryForList (String sql , Object [] args , int [] argTypes , Class <T > elementType )
678
678
throws DataAccessException ;
679
679
680
680
/**
681
- * Query given SQL to create a prepared statement from SQL and a
682
- * list of arguments to bind to the query, expecting a result list.
681
+ * Query given SQL to create a prepared statement from SQL and a list of
682
+ * arguments to bind to the query, expecting a result list.
683
683
* <p>The results will be mapped to a List (one entry for each row) of
684
684
* result objects, each of them matching the specified element type.
685
685
* @param sql the SQL query to execute
@@ -697,8 +697,8 @@ <T>List<T> queryForList(String sql, Object[] args, int[] argTypes, Class<T> elem
697
697
<T > List <T > queryForList (String sql , Object [] args , Class <T > elementType ) throws DataAccessException ;
698
698
699
699
/**
700
- * Query given SQL to create a prepared statement from SQL and a
701
- * list of arguments to bind to the query, expecting a result list.
700
+ * Query given SQL to create a prepared statement from SQL and a list of
701
+ * arguments to bind to the query, expecting a result list.
702
702
* <p>The results will be mapped to a List (one entry for each row) of
703
703
* result objects, each of them matching the specified element type.
704
704
* @param sql the SQL query to execute
@@ -717,12 +717,12 @@ <T>List<T> queryForList(String sql, Object[] args, int[] argTypes, Class<T> elem
717
717
<T > List <T > queryForList (String sql , Class <T > elementType , Object ... args ) throws DataAccessException ;
718
718
719
719
/**
720
- * Query given SQL to create a prepared statement from SQL and a
721
- * list of arguments to bind to the query, expecting a result list.
720
+ * Query given SQL to create a prepared statement from SQL and a list of
721
+ * arguments to bind to the query, expecting a result list.
722
722
* <p>The results will be mapped to a List (one entry for each row) of
723
723
* Maps (one entry for each column, using the column name as the key).
724
- * Thus Each element in the list will be of the form returned by this interface's
725
- * queryForMap() methods.
724
+ * Each element in the list will be of the form returned by this interface's
725
+ * {@code queryForMap} methods.
726
726
* @param sql the SQL query to execute
727
727
* @param args arguments to bind to the query
728
728
* @param argTypes the SQL types of the arguments
@@ -735,12 +735,12 @@ <T>List<T> queryForList(String sql, Object[] args, int[] argTypes, Class<T> elem
735
735
List <Map <String , Object >> queryForList (String sql , Object [] args , int [] argTypes ) throws DataAccessException ;
736
736
737
737
/**
738
- * Query given SQL to create a prepared statement from SQL and a
739
- * list of arguments to bind to the query, expecting a result list.
738
+ * Query given SQL to create a prepared statement from SQL and a list of
739
+ * arguments to bind to the query, expecting a result list.
740
740
* <p>The results will be mapped to a List (one entry for each row) of
741
741
* Maps (one entry for each column, using the column name as the key).
742
742
* Each element in the list will be of the form returned by this interface's
743
- * queryForMap() methods.
743
+ * {@code queryForMap} methods.
744
744
* @param sql the SQL query to execute
745
745
* @param args arguments to bind to the query
746
746
* (leaving it to the PreparedStatement to guess the corresponding SQL type);
@@ -753,8 +753,8 @@ <T>List<T> queryForList(String sql, Object[] args, int[] argTypes, Class<T> elem
753
753
List <Map <String , Object >> queryForList (String sql , Object ... args ) throws DataAccessException ;
754
754
755
755
/**
756
- * Query given SQL to create a prepared statement from SQL and a
757
- * list of arguments to bind to the query, expecting a SqlRowSet.
756
+ * Query given SQL to create a prepared statement from SQL and a list of
757
+ * arguments to bind to the query, expecting a SqlRowSet.
758
758
* <p>The results will be mapped to an SqlRowSet which holds the data in a
759
759
* disconnected fashion. This wrapper will translate any SQLExceptions thrown.
760
760
* <p>Note that, for the default implementation, JDBC RowSet support needs to
@@ -776,8 +776,8 @@ <T>List<T> queryForList(String sql, Object[] args, int[] argTypes, Class<T> elem
776
776
SqlRowSet queryForRowSet (String sql , Object [] args , int [] argTypes ) throws DataAccessException ;
777
777
778
778
/**
779
- * Query given SQL to create a prepared statement from SQL and a
780
- * list of arguments to bind to the query, expecting a SqlRowSet.
779
+ * Query given SQL to create a prepared statement from SQL and a list of
780
+ * arguments to bind to the query, expecting a SqlRowSet.
781
781
* <p>The results will be mapped to an SqlRowSet which holds the data in a
782
782
* disconnected fashion. This wrapper will translate any SQLExceptions thrown.
783
783
* <p>Note that, for the default implementation, JDBC RowSet support needs to
@@ -799,8 +799,9 @@ <T>List<T> queryForList(String sql, Object[] args, int[] argTypes, Class<T> elem
799
799
SqlRowSet queryForRowSet (String sql , Object ... args ) throws DataAccessException ;
800
800
801
801
/**
802
- * Issue a single SQL update operation (such as an insert, update or delete statement)
803
- * using a PreparedStatementCreator to provide SQL and any required parameters.
802
+ * Issue a single SQL update operation (such as an insert, update or delete
803
+ * statement) using a PreparedStatementCreator to provide SQL and any
804
+ * required parameters.
804
805
* <p>A PreparedStatementCreator can either be implemented directly or
805
806
* configured through a PreparedStatementCreatorFactory.
806
807
* @param psc a callback that provides SQL and any necessary parameters
0 commit comments