public static Map < FieldType , String > getDefaultTaskFieldMap ( ) { Map < FieldType , String > map = new LinkedHashMap < FieldType , String > ( ) ; map . put ( TaskField . UNIQUE_ID , "task_id" ) ; map . put ( TaskField . GUID , "guid" ) ; map . put ( TaskField . NAME , "task_name" ) ; map . put ( TaskField . ACTUAL_DURATION , "act_drtn_hr_cnt" ) ; map . put ( TaskField . REMAINING_DURATION , "remain_drtn_hr_cnt" ) ; map . put ( TaskField . ACTUAL_WORK , "act_work_qty" ) ; map . put ( TaskField . REMAINING_WORK , "remain_work_qty" ) ; map . put ( TaskField . BASELINE_WORK , "target_work_qty" ) ; map . put ( TaskField . BASELINE_DURATION , "target_drtn_hr_cnt" ) ; map . put ( TaskField . DURATION , "target_drtn_hr_cnt" ) ; map . put ( TaskField . CONSTRAINT_DATE , "cstr_date" ) ; map . put ( TaskField . ACTUAL_START , "act_start_date" ) ; map . put ( TaskField . ACTUAL_FINISH , "act_end_date" ) ; map . put ( TaskField . LATE_START , "late_start_date" ) ; map . put ( TaskField . LATE_FINISH , "late_end_date" ) ; map . put ( TaskField . EARLY_START , "early_start_date" ) ; map . put ( TaskField . EARLY_FINISH , "early_end_date" ) ; map . put ( TaskField . REMAINING_EARLY_START , "restart_date" ) ; map . put ( TaskField . REMAINING_EARLY_FINISH , "reend_date" ) ; map . put ( TaskField . BASELINE_START , "target_start_date" ) ; map . put ( TaskField . BASELINE_FINISH , "target_end_date" ) ; map . put ( TaskField . CONSTRAINT_TYPE , "cstr_type" ) ; map . put ( TaskField . PRIORITY , "priority_type" ) ; map . put ( TaskField . CREATED , "create_date" ) ; map . put ( TaskField . TYPE , "duration_type" ) ; map . put ( TaskField . FREE_SLACK , "free_float_hr_cnt" ) ; map . put ( TaskField . TOTAL_SLACK , "total_float_hr_cnt" ) ; map . put ( TaskField . TEXT1 , "task_code" ) ; map . put ( TaskField . TEXT2 , "task_type" ) ; map . put ( TaskField . TEXT3 , "status_code" ) ; map . put ( TaskField . NUMBER1 , "rsrc_id" ) ; return map ; }
Retrieve the default mapping between MPXJ task fields and Primavera task field names .