getIncorrectLocations
public static java.util.Map getIncorrectLocations(java.sql.Connection conn,
java.util.Map stationToLocation)
throws java.sql.SQLException,
NotFound
If the stationToLocation map contains a location not in the db, that
location is inserted and the station code entry in the returned map
points to that location id. If the location is already in the db, but the
station has a different location id, the map contains that station code
and the correct location id. If the station already has the correct id in
the db, it isn't in the returned map at all.
- Returns:
- - A map of station code to its correct station id.
- Throws:
java.sql.SQLException
NotFound