/[projects]/android/TrainInfoService/src/dk/thoerup/traininfoservice/db/StationDAO.java
ViewVC logotype

Diff of /android/TrainInfoService/src/dk/thoerup/traininfoservice/db/StationDAO.java

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

revision 1512 by torben, Wed Jun 8 19:11:36 2011 UTC revision 1513 by torben, Thu Jun 9 10:02:31 2011 UTC
# Line 145  public class StationDAO { Line 145  public class StationDAO {
145                  return stations;                  return stations;
146          }          }
147                    
148          public StationBean getByName(final String name) throws SQLException {          public StationBean getByName(String name) throws SQLException {
149                  StationBean stations = getByNameNormal(name);                  StationBean stations = getByNameNormal(name);
150                                    
151                  if (stations.entries.size() == 0) {                  if (stations.entries.size() == 0) {
152                          logger.info("getByName failover: " + name);                          logger.info("getByName failover: " + name);
153                            name = name.replace(".", ""); //remove any .'s before fuzzy search
154                          stations = getByNameFuzzy(name);                          stations = getByNameFuzzy(name);
155                  }                  }
156                  return stations;                  return stations;

Legend:
Removed from v.1512  
changed lines
  Added in v.1513

  ViewVC Help
Powered by ViewVC 1.1.20