|
|
|
|
@ -223,7 +223,7 @@ public interface JdbcOperations {
@@ -223,7 +223,7 @@ public interface JdbcOperations {
|
|
|
|
|
List<Map<String, Object>> queryForList(String sql) throws DataAccessException; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Execute a query for a SqlRowSet, given static SQL. |
|
|
|
|
* Execute a query for an SqlRowSet, given static SQL. |
|
|
|
|
* <p>Uses a JDBC Statement, not a PreparedStatement. If you want to |
|
|
|
|
* execute a static query with a PreparedStatement, use the overloaded |
|
|
|
|
* {@code queryForRowSet} method with {@code null} as argument array. |
|
|
|
|
@ -234,7 +234,7 @@ public interface JdbcOperations {
@@ -234,7 +234,7 @@ public interface JdbcOperations {
|
|
|
|
|
* class is used, which is part of JDK 1.5+ and also available separately as part of |
|
|
|
|
* Sun's JDBC RowSet Implementations download (rowset.jar). |
|
|
|
|
* @param sql the SQL query to execute |
|
|
|
|
* @return a SqlRowSet representation (possibly a wrapper around a |
|
|
|
|
* @return an SqlRowSet representation (possibly a wrapper around a |
|
|
|
|
* {@code javax.sql.rowset.CachedRowSet}) |
|
|
|
|
* @throws DataAccessException if there is any problem executing the query |
|
|
|
|
* @see #queryForRowSet(String, Object...) |
|
|
|
|
@ -775,7 +775,7 @@ public interface JdbcOperations {
@@ -775,7 +775,7 @@ public interface JdbcOperations {
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Query given SQL to create a prepared statement from SQL and a list of |
|
|
|
|
* arguments to bind to the query, expecting a SqlRowSet. |
|
|
|
|
* arguments to bind to the query, expecting an SqlRowSet. |
|
|
|
|
* <p>The results will be mapped to an SqlRowSet which holds the data in a |
|
|
|
|
* disconnected fashion. This wrapper will translate any SQLExceptions thrown. |
|
|
|
|
* <p>Note that, for the default implementation, JDBC RowSet support needs to |
|
|
|
|
@ -786,7 +786,7 @@ public interface JdbcOperations {
@@ -786,7 +786,7 @@ public interface JdbcOperations {
|
|
|
|
|
* @param args arguments to bind to the query |
|
|
|
|
* @param argTypes the SQL types of the arguments |
|
|
|
|
* (constants from {@code java.sql.Types}) |
|
|
|
|
* @return a SqlRowSet representation (possibly a wrapper around a |
|
|
|
|
* @return an SqlRowSet representation (possibly a wrapper around a |
|
|
|
|
* {@code javax.sql.rowset.CachedRowSet}) |
|
|
|
|
* @throws DataAccessException if there is any problem executing the query |
|
|
|
|
* @see #queryForRowSet(String) |
|
|
|
|
@ -798,7 +798,7 @@ public interface JdbcOperations {
@@ -798,7 +798,7 @@ public interface JdbcOperations {
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Query given SQL to create a prepared statement from SQL and a list of |
|
|
|
|
* arguments to bind to the query, expecting a SqlRowSet. |
|
|
|
|
* arguments to bind to the query, expecting an SqlRowSet. |
|
|
|
|
* <p>The results will be mapped to an SqlRowSet which holds the data in a |
|
|
|
|
* disconnected fashion. This wrapper will translate any SQLExceptions thrown. |
|
|
|
|
* <p>Note that, for the default implementation, JDBC RowSet support needs to |
|
|
|
|
@ -810,7 +810,7 @@ public interface JdbcOperations {
@@ -810,7 +810,7 @@ public interface JdbcOperations {
|
|
|
|
|
* (leaving it to the PreparedStatement to guess the corresponding SQL type); |
|
|
|
|
* may also contain {@link SqlParameterValue} objects which indicate not |
|
|
|
|
* only the argument value but also the SQL type and optionally the scale |
|
|
|
|
* @return a SqlRowSet representation (possibly a wrapper around a |
|
|
|
|
* @return an SqlRowSet representation (possibly a wrapper around a |
|
|
|
|
* {@code javax.sql.rowset.CachedRowSet}) |
|
|
|
|
* @throws DataAccessException if there is any problem executing the query |
|
|
|
|
* @see #queryForRowSet(String) |
|
|
|
|
@ -974,7 +974,7 @@ public interface JdbcOperations {
@@ -974,7 +974,7 @@ public interface JdbcOperations {
|
|
|
|
|
<T> T execute(String callString, CallableStatementCallback<T> action) throws DataAccessException; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Execute a SQL call using a CallableStatementCreator to provide SQL and |
|
|
|
|
* Execute an SQL call using a CallableStatementCreator to provide SQL and |
|
|
|
|
* any required parameters. |
|
|
|
|
* @param csc a callback that provides SQL and any necessary parameters |
|
|
|
|
* @param declaredParameters list of declared SqlParameter objects |
|
|
|
|
|