Examples of TaxClassRowMapper


Examples of com.jpoweredcart.common.entity.localisation.jdbc.TaxClassRowMapper

  @Override
  public TaxClass get(Integer taxClassId) {
    String sql = "SELECT * FROM " +quoteTable("tax_class")+ " WHERE tax_class_id = ?";
    TaxClass taxClass = getJdbcOperations().queryForObject(sql,
        new Object[]{taxClassId}, new TaxClassRowMapper());
    sql = "SELECT * FROM "+quoteTable("tax_rule")+ " WHERE tax_class_id =?";
    List<TaxRule> taxRules = getJdbcOperations()
        .query(sql, new Object[]{taxClassId}, new TaxRuleRowMapper());
    taxClass.setTaxRules(taxRules);
    return taxClass;
View Full Code Here

Examples of com.jpoweredcart.common.entity.localisation.jdbc.TaxClassRowMapper

  public List<TaxClass> getList(PageParam pageParam) {
    String sql = "SELECT * FROM "+quoteTable("tax_class");
    //sortedKeys={"tax_class_id"}
    QueryBean query = createPaginationQuery(sql, pageParam);
    List<TaxClass> taxClassList = getJdbcOperations()
        .query(query.getSql(), query.getParameters(), new TaxClassRowMapper());
    return taxClassList;
  }
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.