/[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 1514 by torben, Thu Jun 9 10:02:31 2011 UTC revision 1515 by torben, Fri Jun 10 08:25:43 2011 UTC
# Line 149  public class StationDAO { Line 149  public class StationDAO {
149                  StationBean stations = getByNameNormal(name);                  StationBean stations = getByNameNormal(name);
150                                    
151                  if (stations.entries.size() == 0) {                  if (stations.entries.size() == 0) {
                         logger.info("getByName failover: " + name);  
152                          name = name.replace(".", ""); //remove any .'s before fuzzy search                          name = name.replace(".", ""); //remove any .'s before fuzzy search
153                          stations = getByNameFuzzy(name);                          stations = getByNameFuzzy(name);
154    
155                            logger.info("getByName failover: " + name + "(" + (stations.entries.size() >0) + ")" );
156                  }                  }
157                  return stations;                  return stations;
158          }          }

Legend:
Removed from v.1514  
changed lines
  Added in v.1515

  ViewVC Help
Powered by ViewVC 1.1.20