home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2004 December / PCpro_2004_12.ISO / files / webserver / xampp / xampp-cocoon-addon-1.4.9-installer.exe / Employee.class (.txt) < prev    next >
Encoding:
Java Class File  |  2004-07-12  |  1.1 KB  |  35 lines

  1. package org.apache.cocoon.ojb.samples.bean;
  2.  
  3. import java.io.Serializable;
  4.  
  5. public class Employee implements Serializable {
  6.    // $FF: renamed from: id int
  7.    private int field_0 = 1;
  8.    protected int departmentId = 1;
  9.    protected String name = "My Name";
  10.  
  11.    public int getId() {
  12.       return this.field_0;
  13.    }
  14.  
  15.    public int getDepartmentId() {
  16.       return this.departmentId;
  17.    }
  18.  
  19.    public String getName() {
  20.       return this.name;
  21.    }
  22.  
  23.    public void setId(int newId) {
  24.       this.field_0 = newId;
  25.    }
  26.  
  27.    public void setDepartmentId(int newDepartmentId) {
  28.       this.departmentId = newDepartmentId;
  29.    }
  30.  
  31.    public void setName(String newName) {
  32.       this.name = newName;
  33.    }
  34. }
  35.