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; |