68 |
} |
} |
69 |
|
|
70 |
public void renameResultTables() throws SQLException { |
public void renameResultTables() throws SQLException { |
71 |
|
if (LookupMain.test_mode == true) { |
72 |
|
throw new RuntimeException("Can not rename tables in test mode"); |
73 |
|
} |
74 |
|
|
75 |
Constants consts = Constants.getInstance(); |
Constants consts = Constants.getInstance(); |
76 |
String ext = consts.getTableExtension(); |
String ext = consts.getTableExtension(); |
77 |
|
|
110 |
"AND longitude IS NOT NULL " + |
"AND longitude IS NOT NULL " + |
111 |
"AND gadeid IS NOT NULL " + |
"AND gadeid IS NOT NULL " + |
112 |
"AND (a.distributor IS NULL OR a.distributor<>'LUKKET') " |
"AND (a.distributor IS NULL OR a.distributor<>'LUKKET') " |
|
//"LIMIT 2500" |
|
113 |
; |
; |
114 |
|
|
115 |
if (LookupMain.test_mode == true) { |
if (LookupMain.test_mode == true) { |
167 |
"AND latitude IS NOT NULL " + |
"AND latitude IS NOT NULL " + |
168 |
"AND longitude IS NOT NULL " + |
"AND longitude IS NOT NULL " + |
169 |
"AND a.distributor = ? "; |
"AND a.distributor = ? "; |
170 |
|
|
171 |
|
if (LookupMain.test_mode == true) { |
172 |
|
sql = sql + " AND a.postnr BETWEEN 6000 and 7200 "; |
173 |
|
} |
174 |
|
|
175 |
// Forward only + concur_read_only + fetchsize tvinger driver til at hente en række af gangen (bedre performance ved store result sets) |
// Forward only + concur_read_only + fetchsize tvinger driver til at hente en række af gangen (bedre performance ved store result sets) |
176 |
// Se http://dev.mysql.com/doc/connector-j/en/connector-j-reference-implementation-notes.html |
// Se http://dev.mysql.com/doc/connector-j/en/connector-j-reference-implementation-notes.html |