src/ca/rmen/pdm/xls2html/main/Db2Html.java
/**
     * Read the DB file and return a Webpage which we can transform into an HTML file.
     */
Read the DB file and return a Webpage which we can transform into an HTML file.
Read the DB file and return a Webpage which we can transform into an HTML file .
private static Webpage readDBFile(String dbPath, Page page) throws SQLException, ClassNotFoundException {
        Webpage webpage = new Webpage(page.getId());
        List<Poem> breverias = readBreverias(dbPath, page.getId());
        for (Poem breveria : breverias) {
            webpage.addBreveria(breveria);
        }
        List<Poem> sonnets = readSonnets(dbPath, page.getId());
        for (Poem sonnet : sonnets) {
            webpage.addSonnet(sonnet);
        }
        List<Poem> otherPoems = readOtherPoems(dbPath, page.getId());
        for (Poem poem : otherPoems) {
            webpage.addOtherPoem(poem);
        }
        return webpage;
    }
private static Webpage readDBFile ( String dbPath , Page page ) throws SQLException , ClassNotFoundException { Webpage webpage = new Webpage ( page . getId ( ) ) ; List < Poem > breverias = readBreverias ( dbPath , page . getId ( ) ) ; for ( Poem breveria : breverias ) { webpage . addBreveria ( breveria ) ; } List < Poem > sonnets = readSonnets ( dbPath , page . getId ( ) ) ; for ( Poem sonnet : sonnets ) { webpage . addSonnet ( sonnet ) ; } List < Poem > otherPoems = readOtherPoems ( dbPath , page . getId ( ) ) ; for ( Poem poem : otherPoems ) { webpage . addOtherPoem ( poem ) ; } return webpage ; }
Read the DB file and return a Webpage which we can transform into an HTML file.
Read the DB file and return a Webpage which we can transform into an HTML file .