67 |
|
|
68 |
TimetableBean cachedLookupTimetable(String trainID, String type) throws Exception { |
TimetableBean cachedLookupTimetable(String trainID, String type) throws Exception { |
69 |
String key = trainID+type; |
String key = trainID+type; |
70 |
TimetableBean list = cache.get(key); |
TimetableBean list = (TimetableBean) cache.get(key); |
71 |
|
|
72 |
if (list == null) { |
if (list == null) { |
73 |
list = lookupTimetable(trainID,type); |
list = lookupTimetable(trainID,type); |
89 |
} |
} |
90 |
|
|
91 |
int getStationId(String name) { |
int getStationId(String name) { |
92 |
Integer id = stationCache.get(name); |
Integer id = (Integer) stationCache.get(name); |
93 |
|
|
94 |
if (id == null) { |
if (id == null) { |
95 |
try { |
try { |