Parent Directory | Revision Log
Lookup the stationName in the fetcher and put it in the departureBean That way we don't need db acccess on a cache hit and on a cache miss we saves one DB lookup operation
1 | package dk.thoerup.traininfoservice.banedk; |
2 | |
3 | import java.util.ArrayList; |
4 | import java.util.HashSet; |
5 | import java.util.List; |
6 | import java.util.Set; |
7 | |
8 | public class DepartureBean { |
9 | |
10 | String stationName; |
11 | |
12 | Set<String> notifications = new HashSet<String>(); |
13 | List<DepartureEntry> departureEntries = new ArrayList<DepartureEntry>(); |
14 | |
15 | public Set<String> getNotifications() { |
16 | return notifications; |
17 | } |
18 | |
19 | public List<DepartureEntry> getEntries() { |
20 | return departureEntries; |
21 | } |
22 | |
23 | public String getStationName() { |
24 | return stationName; |
25 | } |
26 | |
27 | } |
ViewVC Help | |
Powered by ViewVC 1.1.20 |