Package com.jpoweredcart.common.entity.catalog.jdbc

Examples of com.jpoweredcart.common.entity.catalog.jdbc.AttributeRowMapper


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


        +quoteTable("attribute")+ " a LEFT JOIN " +quoteTable("attribute_description")+ " ad ON (a.attribute_id = ad.attribute_id) WHERE ad.language_id =?";
    //sortedKeys={"ad.name", "attribute_group", "a.sort_order"}
    QueryBean query = createPaginationQuery(sql, pageParam);
    query.addParameters(languageId, languageId);
    return getJdbcOperations().query(query.getSql(),
        query.getParameters(), new AttributeRowMapper(){
          @Override
          public Attribute mapRow(ResultSet rs, int rowNum)
              throws SQLException {
            Attribute attr = super.mapRow(rs, rowNum);
            attr.setName(rs.getString("name"));
View Full Code Here

TOP

Related Classes of com.jpoweredcart.common.entity.catalog.jdbc.AttributeRowMapper

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.