Package com.jpoweredcart.common.entity.catalog

Examples of com.jpoweredcart.common.entity.catalog.Information


 
  @Override
  public Information get(Integer infoId, Class<? extends Information> clazz) {
   
    String sql = "SELECT * FROM " + quoteTable("information")+" WHERE information_id = ?";
    Information info = getJdbcOperations().queryForObject(sql,
        new Object[]{infoId}, new InformationRowMapper().setTargetClass(clazz));
    return info;
  }
View Full Code Here


    List<Information> infoList = getJdbcOperations().query(query.getSql(),
        query.getParameters(), new InformationRowMapper(){
      @Override
      public Information mapRow(ResultSet rs, int rowNum)
          throws SQLException {
        Information info = super.mapRow(rs, rowNum);
        info.setTitle(rs.getString("title"));
        return info;
      }
    }.setTargetClass(Information.class));
    return infoList;
  }
View Full Code Here

TOP

Related Classes of com.jpoweredcart.common.entity.catalog.Information

Copyright © 2018 www.massapicom. 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.