21 |
|
|
22 |
List<Address> alleAdresser; |
List<Address> alleAdresser; |
23 |
|
|
|
/* Mapper mellem db Row ID og adresse noden */ |
|
|
Map<Integer,Address> idAddressMap; |
|
|
|
|
24 |
|
|
25 |
Map<Integer,HundredePctBean> hundredePct; |
Map<Integer,HundredePctBean> hundredePct; |
26 |
|
|
77 |
public void buildSearchStructures() throws SQLException{ |
public void buildSearchStructures() throws SQLException{ |
78 |
searchPostnrVejnavnGadeid = new HashMap<Integer, Map<String,Long>>(); |
searchPostnrVejnavnGadeid = new HashMap<Integer, Map<String,Long>>(); |
79 |
searchGadeidentAdresser = new HashMap<Long, Map<String,Address>>(); |
searchGadeidentAdresser = new HashMap<Long, Map<String,Address>>(); |
80 |
idAddressMap = new HashMap<Integer,Address>(); |
|
|
|
|
81 |
System.out.println("Build -- stage 1"); |
System.out.println("Build -- stage 1"); |
82 |
|
|
83 |
alleAdresser = DatabaseLayer.getAllAdresses(); |
alleAdresser = DatabaseLayer.getAllAdresses(); |
84 |
|
|
85 |
|
/* Mapper mellem db Row ID og adresse noden */ |
86 |
|
Map<Integer,Address> idAddressMap = new HashMap<Integer,Address>( alleAdresser.size() ); |
87 |
|
|
88 |
for (Address a : alleAdresser) { |
for (Address a : alleAdresser) { |
89 |
idAddressMap.put(a.id, a); |
idAddressMap.put(a.id, a); |
90 |
|
|