author | František Kučera <franta-hg@frantovo.cz> |
Tue Apr 23 21:43:37 2013 +0200 (2013-04-23) | |
changeset 204 | bebec432330a |
parent 49 | 9b2a597cc862 |
permissions | -rw-r--r-- |
1 package cz.frantovo.nekurak.web;
3 import cz.frantovo.nekurak.dto.Podnik;
4 import java.util.Collection;
5 import java.util.Date;
7 /**
8 *
9 * @author fiki
10 */
11 public class Atom {
13 private HledacSluzby hledac = new HledacSluzby();
14 private Collection<Podnik> podniky;
16 public Collection<Podnik> getPodniky() {
17 if (podniky == null) {
18 podniky = hledac.getPodnikEJB().getPodniky();
19 }
20 return podniky;
21 }
23 public Date getDatumAktualizace() {
24 for (Podnik p : getPodniky()) {
25 return p.getDatum();
26 }
27 return new Date();
28 }
29 }