Package com.jpoweredcart.admin.form.report

Examples of com.jpoweredcart.admin.form.report.CustomerRewardRpt


public class CustomerRewardRptRowMapper implements RowMapper<CustomerRewardRpt>{
 
  @Override
  public CustomerRewardRpt mapRow(ResultSet rs, int rowNum) throws SQLException {
   
    CustomerRewardRpt reward = new CustomerRewardRpt();
   
    reward.setCustomerId(rs.getInt("customer_id"));
    String customerName = rs.getString("firstname")+" "+
        rs.getString("lastname");
    reward.setCustomerName(customerName);
    reward.setEmail(rs.getString("email"));
    reward.setCustomerGroup(rs.getString("customer_group"));
    reward.setStatus(rs.getShort("status"));
   
    reward.setPoints(rs.getInt("points"));
    reward.setOrders(rs.getInt("orders"));
    reward.setTotal(rs.getBigDecimal("total"));
   
    return reward;
  }
View Full Code Here

TOP

Related Classes of com.jpoweredcart.admin.form.report.CustomerRewardRpt

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.