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 | torben | 978 | 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 | torben | 1021 | String stationName; |
11 | |||
12 | torben | 978 | Set<String> notifications = new HashSet<String>(); |
13 | List<DepartureEntry> departureEntries = new ArrayList<DepartureEntry>(); | ||
14 | |||
15 | torben | 979 | public Set<String> getNotifications() { |
16 | return notifications; | ||
17 | } | ||
18 | torben | 978 | |
19 | torben | 979 | public List<DepartureEntry> getEntries() { |
20 | return departureEntries; | ||
21 | } | ||
22 | |||
23 | torben | 1021 | public String getStationName() { |
24 | return stationName; | ||
25 | } | ||
26 | |||
27 | torben | 978 | } |
ViewVC Help | |
Powered by ViewVC 1.1.20 |