Uses a JDBC Statement, not a PreparedStatement. If you want to execute a static query with a PreparedStatement, use the overloaded queryForObject
method with null
as argument array.
@param sql SQL query to execute
@param rowMapper object that will map one object per row
@return the single mapped object
@throws IncorrectResultSizeDataAccessException if the query does notreturn exactly one row
@throws DataAccessException if there is any problem executing the query
@see #queryForObject(String,Object[],RowMapper)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|