public void setField(Integer field, String value) {
        switch(field) {
            case 1:
                field1 = value;
                updateMap.put("field1", value);
                return;
            case 2:
                field2 = value;
                updateMap.put("field2", value);
                return;
            case 3:
                field3 = value;
                updateMap.put("field3", value);
                return;
            case 4:
                field4 = value;
                updateMap.put("field4", value);
                return;
            case 5:
                field5 = value;
                updateMap.put("field5", value);
                return;
            case 6:
                field6 = value;
                updateMap.put("field6", value);
                return;
            case 7:
                field7 = value;
                updateMap.put("field7", value);
                return;
            case 8:
                field8 = value;
                updateMap.put("field8", value);
                return;
        }
        throw new IllegalArgumentException("Invalid field.");
    }