getFieldValue method
Get a field's value by fieldId
. Primitive types will be wrapped in the
appropriate "boxed" types.
Implementation
getFieldValue(int fieldID) {
switch (fieldID) {
case JOB_ID:
return this.job_id;
case JOB_DESC:
return this.job_desc;
case TASK_DESC:
return this.task_desc;
case RECOVERED_JOB_NUM:
return this.recovered_job_num;
default:
throw new ArgumentError("Field $fieldID doesn't exist!");
}
}