/[projects]/android/TrainInfoServiceGoogle/src/dk/thoerup/traininfoservice/banedk/TimetableFetcher.java |
Parent Directory | Revision Log | Patch
revision 1104 by torben, Tue Sep 21 20:14:34 2010 UTC | revision 1105 by torben, Wed Sep 22 21:09:39 2010 UTC | |
---|---|---|
# | Line 92 public class TimetableFetcher { | Line 92 public class TimetableFetcher { |
92 | Integer id = (Integer) stationCache.get(name); | Integer id = (Integer) stationCache.get(name); |
93 | ||
94 | if (id == null) { | if (id == null) { |
95 | try { | |
96 | id = stationDao.getIdByName(name); | id = stationDao.getIdByName(name); |
97 | stationCache.put(name, id); | stationCache.put(name, id); |
} catch (SQLException e) { | ||
logger.log(Level.SEVERE, "getStationId failed", e); | ||
id = -1; | ||
} | ||
98 | } | } |
99 | ||
100 | return id; | return id; |
|
ViewVC Help | |
Powered by ViewVC 1.1.20 |