attribute2dbField.put("dayOfWeekSCH02","DAY_OF_WEEK");
attribute2dbField.put("morningStartHourSCH02","MORNING_START_HOUR");
attribute2dbField.put("morningEndHourSCH02","MORNING_END_HOUR");
attribute2dbField.put("afternoonStartHourSCH02","AFTERNOON_START_HOUR");
attribute2dbField.put("afternoonEndHourSCH02","AFTERNOON_END_HOUR");
Response res = null;
for(int i=0;i<list.size();i++) {
vo = (EmployeeCalendarVO)list.get(i);
vo.setMorningStartHourSCH02(DateUtils.setTime(vo.getMorningStartHourSCH02()));
vo.setMorningEndHourSCH02(DateUtils.setTime(vo.getMorningEndHourSCH02()));
vo.setAfternoonStartHourSCH02(DateUtils.setTime(vo.getAfternoonStartHourSCH02()));
vo.setAfternoonEndHourSCH02(DateUtils.setTime(vo.getAfternoonEndHourSCH02()));
// insert into SCH02...
res = org.jallinone.commons.server.QueryUtilExtension.insertTable(
conn,
new UserSessionParameters(username),
vo,
"SCH02_EMPLOYEE_CALENDAR",
attribute2dbField,
"Y",
"N",
null,
true
);
if (res.isError()) {
throw new Exception(res.getErrorMessage());
}
}
return new VOListResponse(list,false,list.size());
}