package cz.frantovo.sql.vyuka.dto; import java.util.ArrayList; import java.util.Collection; /** * Výsledek SQL dotazu * @author fiki */ public class VysledekSQL implements HtmlObjekt { private Collection tabulky = new ArrayList(); private Collection hlasky = new ArrayList(); public Collection getTabulky() { return tabulky; } public Collection getHlasky() { return hlasky; } public String getHtml() { StringBuffer html = new StringBuffer(); for (Tabulka t : tabulky) { html.append(t.getHtml()); } for (Hlaska h : hlasky) { html.append(h.getHtml()); } return html.toString(); } }