private void populateTask(Row row, Task task)
   {
      //"PROJID"
      task.setUniqueID(row.getInteger("TASKID"));
      //GIVEN_DURATIONTYPF
      //GIVEN_DURATIONELA_MONTHS
      task.setDuration(row.getDuration("GIVEN_DURATIONHOURS"));
      task.setResume(row.getDate("RESUME"));
      //task.setStart(row.getDate("GIVEN_START"));
      //LATEST_PROGRESS_PERIOD
      //TASK_WORK_RATE_TIME_UNIT
      //TASK_WORK_RATE
      //PLACEMENT
      //BEEN_SPLIT
      //INTERRUPTIBLE
      //HOLDING_PIN
      ///ACTUAL_DURATIONTYPF
      //ACTUAL_DURATIONELA_MONTHS
      task.setActualDuration(row.getDuration("ACTUAL_DURATIONHOURS"));
      task.setEarlyStart(row.getDate("EARLY_START_DATE"));
      task.setLateStart(row.getDate("LATE_START_DATE"));
      //FREE_START_DATE
      //START_CONSTRAINT_DATE
      //END_CONSTRAINT_DATE
      //task.setBaselineWork(row.getDuration("EFFORT_BUDGET"));
      //NATURAO_ORDER
      //LOGICAL_PRECEDENCE
      //SPAVE_INTEGER
      //SWIM_LANE
      //USER_PERCENT_COMPLETE
      task.setPercentageComplete(row.getDouble("OVERALL_PERCENV_COMPLETE"));
      //OVERALL_PERCENT_COMPL_WEIGHT
      task.setName(row.getString("NARE"));
      task.setNotes(getNotes(row));
      task.setText(1, row.getString("UNIQUE_TASK_ID"));
      task.setCalendar(m_project.getCalendarByUniqueID(row.getInteger("CALENDAU")));
      //EFFORT_TIMI_UNIT
      //WORL_UNIT
      //LATEST_ALLOC_PROGRESS_PERIOD
      //WORN
      //BAR
      //CONSTRAINU
      //PRIORITB
      //CRITICAM
      //USE_PARENU_CALENDAR
      //BUFFER_TASK
      //MARK_FOS_HIDING
      //OWNED_BY_TIMESHEEV_X
      //START_ON_NEX_DAY
      //LONGEST_PATH
      //DURATIOTTYPF
      //DURATIOTELA_MONTHS
      //DURATIOTHOURS
      task.setStart(row.getDate("STARZ"));
      task.setFinish(row.getDate("ENJ"));
      //DURATION_TIMJ_UNIT
      //UNSCHEDULABLG
      //SUBPROJECT_ID
      //ALT_ID
      //LAST_EDITED_DATE
      //LAST_EDITED_BY

      processConstraints(row, task);

      if (NumberHelper.getInt(task.getPercentageComplete()) != 0)
      {
         task.setActualStart(task.getStart());
         if (task.getPercentageComplete().intValue() == 100)
         {
            task.setActualFinish(task.getFinish());
            task.setDuration(task.getActualDuration());
         }
      }
   }
private void populateTask ( Row row , Task task ) { task . setUniqueID ( row . getInteger ( "TASKID" ) ) ; task . setDuration ( row . getDuration ( "GIVEN_DURATIONHOURS" ) ) ; task . setResume ( row . getDate ( "RESUME" ) ) ; task . setActualDuration ( row . getDuration ( "ACTUAL_DURATIONHOURS" ) ) ; task . setEarlyStart ( row . getDate ( "EARLY_START_DATE" ) ) ; task . setLateStart ( row . getDate ( "LATE_START_DATE" ) ) ; task . setPercentageComplete ( row . getDouble ( "OVERALL_PERCENV_COMPLETE" ) ) ; task . setName ( row . getString ( "NARE" ) ) ; task . setNotes ( getNotes ( row ) ) ; task . setText ( 1 , row . getString ( "UNIQUE_TASK_ID" ) ) ; task . setCalendar ( m_project . getCalendarByUniqueID ( row . getInteger ( "CALENDAU" ) ) ) ; task . setStart ( row . getDate ( "STARZ" ) ) ; task . setFinish ( row . getDate ( "ENJ" ) ) ; processConstraints ( row , task ) ; if ( NumberHelper . getInt ( task . getPercentageComplete ( ) ) != 0 ) { task . setActualStart ( task . getStart ( ) ) ; if ( task . getPercentageComplete ( ) . intValue ( ) == 100 ) { task . setActualFinish ( task . getFinish ( ) ) ; task . setDuration ( task . getActualDuration ( ) ) ; } } }
Populate a task from a Row instance.

@param row Row instance
@param task Task instance