/[projects]/android/TrainInfoService/src/dk/thoerup/traininfoservice/banedk/TimetableFetcher.java
ViewVC logotype

Diff of /android/TrainInfoService/src/dk/thoerup/traininfoservice/banedk/TimetableFetcher.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 836 by torben, Fri Jun 11 17:12:29 2010 UTC revision 842 by torben, Fri Jun 11 20:50:40 2010 UTC
# Line 51  public class TimetableFetcher { Line 51  public class TimetableFetcher {
51                    
52          List<TimetableBean> cachedLookupTimetable(String trainID, String type) throws Exception {          List<TimetableBean> cachedLookupTimetable(String trainID, String type) throws Exception {
53                  String key = trainID+type;                  String key = trainID+type;
54                  List<TimetableBean> list = null;//cache.get(key);                  List<TimetableBean> list = cache.get(key);
55                                    
56                  if (list == null) {                  if (list == null) {
57                          list = lookupTimetable(trainID,type);                          list = lookupTimetable(trainID,type);
# Line 76  public class TimetableFetcher { Line 76  public class TimetableFetcher {
76                                    
77                  if (id == null) {                  if (id == null) {
78                          try {                          try {
79                                  id = stationDao.getBySpecificName(name);                                  id = stationDao.getIdByName(name);
80                                  stationCache.put(name, id);                                  stationCache.put(name, id);
81                          } catch (SQLException e) {                          } catch (SQLException e) {
82                                  logger.log(Level.SEVERE, "getStationId failed", e);                                  logger.log(Level.SEVERE, "getStationId failed", e);

Legend:
Removed from v.836  
changed lines
  Added in v.842

  ViewVC Help
Powered by ViewVC 1.1.20