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_TYPE:
return this.job_type;
case JOB_ID:
return this.job_id;
case TASK_ID:
return this.task_id;
case PARA:
return this.para;
default:
throw new ArgumentError("Field $fieldID doesn't exist!");
}
}