title: What does JdbcTemplate do when RowMapper returns null?
body: <p>I am using the <code>JdbcTemplate.query(sql, args, rowMapper)</code> method call to return a list of objects. There are some cases where I want to skip a row and not add it to the list that I return. In these cases, I've thought of two solutions:</p>
  
  <ol>
  <li>Have RowMapper return null. </li>
  <li>Have RowMapper throw an Exception (I know SQLExceptions are handled so this is one possibility).</li>
  </ol>
  
  <p>My question is: When <code>RowMapper.mapRow</code> returns null, does JdbcTemplate add it to the list? If not, should I throw an SQLException instead?</p>