Package org.timedex.dao.impl

Examples of org.timedex.dao.impl.PageTextDAOImpl


  private PageDAO pageDAO;
 
  @Override
  public void setUpInternal() {
    pageDAO = new PageDAOImpl();
    pageTextDAO = new PageTextDAOImpl();
  }
View Full Code Here


  }
 
  public static void main(String[] args) {
    ExtractEventsApp esa = new ExtractEventsApp();
    esa.setPageDAO(new PageDAOImpl());
    esa.setPtDAO(new PageTextDAOImpl());
    esa.setEventDAO(new EventDAOImpl());
    esa.setPageLinkDAO(new PageLinkDAOImpl());
    esa.setSessionStrategy(HibernateSessionStrategy.getInstance());
    esa.run();
   
View Full Code Here

 
 
  //test
  public static void main(String[] args) {
    PageDAO pageDAO = new PageDAOImpl();
    PageTextDAO pageTextDAO = new PageTextDAOImpl();
    Page page = pageDAO.findById(927);
    PageText ptext = pageTextDAO.findByPage(page);
    String text = ptext.getTextAsString();
    WikitextStripper stripper = new WikitextStripper();
    //stripper.setLeaveHeadings(true);
    System.out.println(text);
    text = stripper.strip(text);
View Full Code Here

TOP

Related Classes of org.timedex.dao.impl.PageTextDAOImpl

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.