D:\Sam\InterviewsMaterial\SiteWorx\SiteWorxTest\src\java\linkedlist_example_package\EmployeeDataObject.java
 1 /*
 2  * To change this template, choose Tools | Templates
 3  * and open the template in the editor.
 4  */
 5 package linkedlist_example_package;
 6 
 7 /**
 8  *
 9  * @author sameldin
10  */
11 public class EmployeeDataObject 
12 {
13     private String      name        = ""; 
14     private int         salary      = -1; 
15     
16     public EmployeeDataObject(String passedName, int passedSalary)
17     {
18         this.name = passedName;
19         this.salary = passedSalary;
20     }
21 
22     /**
23      * @return the name
24      */
25     public String getName() {
26         return name;
27     }
28 
29     /**
30      * @param name the name to set
31      */
32     public void setName(String name) {
33         this.name = name;
34     }
35 
36     /**
37      * @return the salary
38      */
39     public int getSalary() {
40         return salary;
41     }
42 
43     /**
44      * @param salary the salary to set
45      */
46     public void setSalary(int salary) {
47         this.salary = salary;
48     }
49     /**
50      * @param toString for RanchersSignUpDataObject
51      */
52     public String toString() {
53                 return ("user Name                      "    + getName()
54                                 + "user_ID              "    + getSalary()
55                         );
56     }
57     
58 }
59