writeHeader(table, stats, hasRelationships, hasOrphans, graphDir, out);
writeHeader(table, stats, graphDir, out);
    public WriteStats write(Database db, Table table, boolean hasRelationships, boolean hasOrphans, File outputDir, WriteStats stats, LineWriter out) throws IOException {        File graphDir = new File(outputDir, "graphs");        generateDots(table, graphDir, stats);        writeHeader(db, table, null, hasRelationships, hasOrphans, out);        out.writeln("<table width='100%' border='0'>");        out.writeln("<tr valign='top'><td class='container' align='left' valign='top'>");        writeHeader(table, stats, hasRelationships, hasOrphans, graphDir, out);        out.writeln("</td><td class='container' rowspan='2' align='right' valign='top'>");        writeLegend(true, out);        out.writeln("</td><tr valign='top'><td class='container' align='left' valign='top'>");        boolean onCascadeDelete = writeMainTable(table, out);        writeNumRows(db, table, out);        out.writeln("</td></tr></table>");        writeCheckConstraints(table, out);        writeIndexes(table, out);        Set tableNames = new HashSet();        for (Iterator iter = db.getTables().iterator(); iter.hasNext(); ) {            tableNames.add(((Table)iter.next()).getName());        }        for (Iterator iter = db.getViews().iterator(); iter.hasNext(); ) {            tableNames.add(((Table)iter.next()).getName());        }        writeView(table, db.getMetaData(), tableNames, out);        writeGraph(table, stats, graphDir, out);        writeFooter(onCascadeDelete, out);        return stats;    }