Package org.springframework.jdbc.core.namedparam

Examples of org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate.query()


 
  public List<Review> findReviewsForQueueItems(List<String> queueItemIds) {
    NamedParameterJdbcTemplate npJdbcTemplate = new NamedParameterJdbcTemplate(jdbcTemplate);
    Map<String, List> parameters = new HashMap<String, List>();
    parameters.put("netflixIds", queueItemIds);
    return npJdbcTemplate.query("select movieTitle, author, submitted, text, netflixId from Review where netflixId in (:netflixIds) order by submitted desc",
      parameters, new ReviewRowMapper());
  }
 
  private static final int RECENT_REVIEW_COUNT = 20;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.