/[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 1515 by torben, Fri Jun 10 08:25:43 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);                          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.1512  
changed lines
  Added in v.1515

  ViewVC Help
Powered by ViewVC 1.1.20