author | František Kučera <franta-hg@frantovo.cz> |
Sun Jun 20 14:46:47 2010 +0200 (2010-06-20) | |
changeset 145 | 0efefbf5f8b6 |
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 }