Examples of CurrencyRowMapper


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

 
  @Override
  public Currency get(Integer currencyId, Class<? extends Currency> clazz) {
    String sql = "SELECT * FROM " +quoteTable("currency")+ " WHERE currency_id = ?";
    return getJdbcOperations().queryForObject(sql, new Object[]{currencyId},
        new CurrencyRowMapper().setTargetClass(clazz));
  }
View Full Code Here

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

  }
 
  @Override
  public Currency getOneByCode(String code) {
    String sql = "SELECT * FROM " +quoteTable("currency")+ " WHERE code = ?";
    return getJdbcOperations().queryForObject(sql, new Object[]{code}, new CurrencyRowMapper());
  }
View Full Code Here

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

  public List<Currency> getList(PageParam pageParam) {
    String sql = "SELECT * FROM "+quoteTable("currency");
    //sortedKeys="title", "code", "value", "date_modified"
    QueryBean query = createPaginationQuery(sql, pageParam);
    List<Currency> currencyList = getJdbcOperations().query(query.getSql(),
        query.getParameters(), new CurrencyRowMapper());
    //TODO: Do we need to update the cache here?
    return currencyList;
  }
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.