author | František Kučera <franta-hg@frantovo.cz> |
Wed, 14 Apr 2010 00:12:32 +0200 | |
changeset 100 | 01be78803f73 |
parent 49 | 9b2a597cc862 |
child 145 | 0efefbf5f8b6 |
permissions | -rw-r--r-- |
franta-hg@49 | 1 |
package cz.frantovo.nekurak.web; |
franta-hg@49 | 2 |
|
franta-hg@49 | 3 |
import cz.frantovo.nekurak.dto.Podnik; |
franta-hg@49 | 4 |
import java.util.Collection; |
franta-hg@49 | 5 |
import java.util.Date; |
franta-hg@49 | 6 |
|
franta-hg@49 | 7 |
/** |
franta-hg@49 | 8 |
* |
franta-hg@49 | 9 |
* @author fiki |
franta-hg@49 | 10 |
*/ |
franta-hg@49 | 11 |
public class Atom { |
franta-hg@49 | 12 |
|
franta-hg@49 | 13 |
private HledacSluzby hledac = new HledacSluzby(); |
franta-hg@49 | 14 |
private Collection<Podnik> podniky; |
franta-hg@49 | 15 |
|
franta-hg@49 | 16 |
public Collection<Podnik> getPodniky() { |
franta-hg@49 | 17 |
if (podniky == null) { |
franta-hg@49 | 18 |
podniky = hledac.getPodnikEJB().getPodniky(); |
franta-hg@49 | 19 |
} |
franta-hg@49 | 20 |
return podniky; |
franta-hg@49 | 21 |
} |
franta-hg@49 | 22 |
|
franta-hg@49 | 23 |
public Date getDatumAktualizace() { |
franta-hg@49 | 24 |
for (Podnik p : getPodniky()) { |
franta-hg@49 | 25 |
return p.getDatum(); |
franta-hg@49 | 26 |
} |
franta-hg@49 | 27 |
return new Date(); |
franta-hg@49 | 28 |
} |
franta-hg@49 | 29 |
} |