franta-hg@107: package cz.frantovo.nekurak.web; franta-hg@107: franta-hg@107: import cz.frantovo.nekurak.dto.VysledekHlasovani; franta-hg@107: franta-hg@107: /** franta-hg@107: * franta-hg@107: * @author fiki franta-hg@107: */ franta-hg@107: public class Hlasovani { franta-hg@107: franta-hg@145: private HledacSluzby hledac = new HledacSluzby(); franta-hg@145: private int podnik; franta-hg@145: private VysledekHlasovani vysledek; franta-hg@107: franta-hg@145: public void setPodnik(int podnik) { franta-hg@145: this.podnik = podnik; franta-hg@145: vysledek = null; franta-hg@145: } franta-hg@107: franta-hg@145: public VysledekHlasovani getVysledek() { franta-hg@145: if (vysledek == null) { franta-hg@145: vysledek = hledac.getPodnikEJB().getVysledekHlasovani(podnik); franta-hg@145: } franta-hg@145: return vysledek; franta-hg@107: } franta-hg@107: }