comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/datacage/Datacage.java @ 995:e0df86bc6d31

Added kludge for the null type information of artifact data. flys-artifacts/trunk@2431 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Sun, 31 Jul 2011 19:07:02 +0000
parents aabcca7aeb6c
children f61fe8b561d2
comparison
equal deleted inserted replaced
994:3f9d46dd259c 995:e0df86bc6d31
310 int i = 0; 310 int i = 0;
311 for (StateData sd: data) { 311 for (StateData sd: data) {
312 int id = ids[i++]; 312 int id = ids[i++];
313 stmnt.setInt(1, id); 313 stmnt.setInt(1, id);
314 stmnt.setInt(2, artifactId); 314 stmnt.setInt(2, artifactId);
315 stmnt.setString(3, sd.getType()); 315 // XXX: Where come the nulls from?
316 String type = sd.getType();
317 if (type == null) type = "String";
318 stmnt.setString(3, type);
316 stmnt.setString(4, sd.getName()); 319 stmnt.setString(4, sd.getName());
317 setString(stmnt, 5, sd); 320 setString(stmnt, 5, sd);
318 stmnt.execute(); 321 stmnt.execute();
319 } 322 }
320 323

http://dive4elements.wald.intevation.org