private void processCalendar ( MapRow row ) { ProjectCalendar calendar = m_project . addCalendar ( ) ; Map < UUID , List < DateRange > > dayTypeMap = processDayTypes ( row . getRows ( "DAY_TYPES" ) ) ; calendar . setName ( row . getString ( "NAME" ) ) ; processRanges ( dayTypeMap . get ( row . getUUID ( "SUNDAY_DAY_TYPE" ) ) , calendar . addCalendarHours ( Day . SUNDAY ) ) ; processRanges ( dayTypeMap . get ( row . getUUID ( "MONDAY_DAY_TYPE" ) ) , calendar . addCalendarHours ( Day . MONDAY ) ) ; processRanges ( dayTypeMap . get ( row . getUUID ( "TUESDAY_DAY_TYPE" ) ) , calendar . addCalendarHours ( Day . TUESDAY ) ) ; processRanges ( dayTypeMap . get ( row . getUUID ( "WEDNESDAY_DAY_TYPE" ) ) , calendar . addCalendarHours ( Day . WEDNESDAY ) ) ; processRanges ( dayTypeMap . get ( row . getUUID ( "THURSDAY_DAY_TYPE" ) ) , calendar . addCalendarHours ( Day . THURSDAY ) ) ; processRanges ( dayTypeMap . get ( row . getUUID ( "FRIDAY_DAY_TYPE" ) ) , calendar . addCalendarHours ( Day . FRIDAY ) ) ; processRanges ( dayTypeMap . get ( row . getUUID ( "SATURDAY_DAY_TYPE" ) ) , calendar . addCalendarHours ( Day . SATURDAY ) ) ; for ( MapRow assignment : row . getRows ( "DAY_TYPE_ASSIGNMENTS" ) ) { Date date = assignment . getDate ( "DATE" ) ; processRanges ( dayTypeMap . get ( assignment . getUUID ( "DAY_TYPE_UUID" ) ) , calendar . addCalendarException ( date , date ) ) ; } m_calendarMap . put ( row . getUUID ( "UUID" ) , calendar ) ; }
Extract data for a single calendar .