// elementId);
// for (VarintervalBean intervalBean : col) {
// intervalBean.remove(con);
// }
int orderNr = 0;
VarintervalBean varIntervalBean = null;
for (Node node : intervalList) {
varIntervalBean = new VarintervalBean();
varIntervalBean.setAutoid(autoId);
varIntervalBean.setId(elementId);
String start = node.valueOf("@start");
if (start != null && !start.equals("")) {
varIntervalBean.setValidfrom(Converter.stringToSqlDate(start));
}
String stop = node.valueOf("@stop");
if (stop != null && !stop.equals("")) {
varIntervalBean.setValidto(Converter.stringToSqlDate(stop));
}
varIntervalBean.setOrdernumber(new Integer(orderNr));
varIntervalBean.create(con);
orderNr++;
}
}