Package org.springmodules.samples.lucene.bean.indexing

Examples of org.springmodules.samples.lucene.bean.indexing.DocumentCategory


      super(ds, "SELECT CATEGORY_ID,CATEGORY_NAME FROM CATEGORY");
      compile();
    }

    public Object mapRow(ResultSet rs, int rowNumber) throws SQLException {
      DocumentCategory category = new DocumentCategory(rs.getInt("CATEGORY_ID"),
                          rs.getString("CATEGORY_NAME"));
      return category;
    }
View Full Code Here


      super.declareParameter(new SqlParameter("id", Types.INTEGER));
      compile();
    }

    public Object mapRow(ResultSet rs, int rowNumber) throws SQLException {
      DocumentCategory category = new DocumentCategory(rs.getInt("CATEGORY_ID"),
                          rs.getString("CATEGORY_NAME"));
      return category;
    }
View Full Code Here

    return new ModelAndView("category/categories", "categories", categories);
  }

  public ModelAndView showCategory(HttpServletRequest request,
                HttpServletResponse response) throws Exception {
    DocumentCategory category = categoryService.getCategory(getId(request));
    return new ModelAndView("category/category", "category", category);
  }
View Full Code Here

TOP

Related Classes of org.springmodules.samples.lucene.bean.indexing.DocumentCategory

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.