30 |
|
|
31 |
public class AddressSearch { |
public class AddressSearch { |
32 |
|
|
33 |
private Map<Integer, Map<String,Long>> searchPostnrVejnavnGadeid; |
private Map<Short, Map<String,Long>> searchPostnrVejnavnGadeid; |
34 |
private Map<Long, Map<String,Address>> searchGadeidentAdresser; |
private Map<Long, Map<String,Address>> searchGadeidentAdresser; |
35 |
|
|
36 |
private List<Address> alleAdresser; |
private List<Address> alleAdresser; |
197 |
|
|
198 |
|
|
199 |
public void buildSearchStructures() throws SQLException{ |
public void buildSearchStructures() throws SQLException{ |
200 |
searchPostnrVejnavnGadeid = new HashMap<Integer, Map<String,Long>>(); |
searchPostnrVejnavnGadeid = new HashMap<Short, Map<String,Long>>(); |
201 |
searchGadeidentAdresser = new HashMap<Long, Map<String,Address>>(); |
searchGadeidentAdresser = new HashMap<Long, Map<String,Address>>(); |
202 |
helperCache = new ConcurrentHashMap<String,Long>(); |
helperCache = new ConcurrentHashMap<String,Long>(); |
203 |
|
|
619 |
return aliasSet; |
return aliasSet; |
620 |
} |
} |
621 |
|
|
622 |
public Set<Integer> getPostnumre() { |
public Set<Short> getPostnumre() { |
623 |
return new TreeSet<Integer>( searchPostnrVejnavnGadeid.keySet() ); |
return new TreeSet<Short>( searchPostnrVejnavnGadeid.keySet() ); |
624 |
} |
} |
625 |
|
|
626 |
public Set<Entry<String,Long>> getVejnavne(int postnr) { |
public Set<Entry<String,Long>> getVejnavne(int postnr) { |