Examples of ReturnActionRowMapper


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

  @Override
  public ReturnAction get(Integer returnActionId) {
    String sql = "SELECT * FROM " +quoteTable("return_action")+ " WHERE return_action_id = ? and language_id = ?";
    Integer languageId = getSettingService().getConfig(SettingKey.ADMIN_LANGUAGE_ID, Integer.class);
    return getJdbcOperations().queryForObject(sql, new Object[]{returnActionId, languageId},
        new ReturnActionRowMapper());
  }
View Full Code Here

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

    //sortedKeys={"name"}
    QueryBean query = createPaginationQuery(sql, pageParam);
    Integer languageId = getSettingService().getConfig(SettingKey.ADMIN_LANGUAGE_ID, Integer.class);
    query.addParameters(languageId);
    List<ReturnAction> returnActionList = getJdbcOperations()
        .query(query.getSql(), query.getParameters(), new ReturnActionRowMapper());
   
    return returnActionList;
  }
View Full Code Here

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

  @Override
  public ReturnActions getReturnActions(Integer descId) {
    String sql = "SELECT s.return_action_id, s.name, s.language_id, l.name AS language_name, l.image AS language_image FROM " +
        quoteTable("return_action")+" s INNER JOIN "+quoteTable("language")+" l ON s.language_id=l.language_id WHERE return_action_id=?";
    List<ReturnAction> list = getJdbcOperations().query(sql, new Object[]{descId},
        new ReturnActionRowMapper());
    ReturnActions returnActions = new ReturnActions(list);
    return returnActions;
  }
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.