Package com.jpoweredcart.common.entity.sale.jdbc

Examples of com.jpoweredcart.common.entity.sale.jdbc.CustomerGroupRowMapper$Desc


 
  @Override
  public CustomerGroup get(Integer cgId, Class<? extends CustomerGroup> clazz) {
    String sql = "SELECT * FROM " +quoteTable("customer_group")+ " cg WHERE cg.customer_group_id = ?";
    return getJdbcOperations().queryForObject(sql, new Object[]{cgId},
        new CustomerGroupRowMapper().setTargetClass(clazz));
  }
View Full Code Here


        + " cgd ON (cg.customer_group_id = cgd.customer_group_id) WHERE cgd.language_id = ?";
    //sortedKeys={"cgd.name", "cg.sort_order"}
    QueryBean query = createPaginationQuery(sql, pageParam);
    query.addParameters(languageId);
    List<CustomerGroup> customerGroupList = getJdbcOperations()
        .query(query.getSql(), query.getParameters(), new CustomerGroupRowMapper(){
          @Override
          public CustomerGroup mapRow(ResultSet rs, CustomerGroup object)
              throws SQLException {
            CustomerGroup customerGroup = super.mapRow(rs, object);
            customerGroup.setName(rs.getString("name"));
View Full Code Here

TOP

Related Classes of com.jpoweredcart.common.entity.sale.jdbc.CustomerGroupRowMapper$Desc

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.