// Collection of code snippets by Arne Vajhøj 
// (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) 
import dk.vajhoej.isam.KeyField;
import dk.vajhoej.record.FieldType;
import dk.vajhoej.record.Struct;
import dk.vajhoej.record.StructField;

@Struct
public class Employee {
    @KeyField(n=0)
    @StructField(n=0, type=FieldType.FIXSTR, length=4)
    private String no;
    @KeyField(n=1)
    @StructField(n=1, type=FieldType.FIXSTR, length=10)
    private String name;
    @KeyField(n=2)
    @StructField(n=2, type=FieldType.FIXSTR, length=10)
    private String role;
    public Employee() {
        this("    ", "          ", "          ");
    }
    public Employee(String no, String name, String role) {
        this.no = no;
        this.name = name;
        this.role = role;
    }
    public String getNo() {
        return no;
    }
    public String getName() {
        return name;
    }
    public String getRole() {
        return role;
    }
}
