-
Notifications
You must be signed in to change notification settings - Fork 0
/
EmployeeType.java
78 lines (65 loc) · 1.53 KB
/
EmployeeType.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
/* this is Pojo class which is a map to "employee_type" table in database. with all getter and setter methods */
public class EmployeeType{
int id; // map to primary key of employee_type table in captain database
int type; // map to type field of employee_type table in captain database
String designation; // map to designation field of employee_type table in captain database
public EmployeeType(){}
/**
@brief : use this constructor to add employee type with designation
@parameter : type : int
designation : String
**/
public EmployeeType(int type,String designation){
this.type = type;
this.designation = designation;
}
/*getter and setter properties for table name employee_type */
/**
@brief : gets row id
@parameter : void
@retval: row id
**/
public int getId(){
return id;
}
/**
@brief : sets row id
@parameter : integer
@retval: void
**/
public void setId(int id){
this.id = id;
}
/**
@brief : gets employee's type
@parameter : void
@retval: employee's type
**/
public int getType(){
return type;
}
/**
@brief : sets employee's typle
@parameter : integer
@retval: void
**/
public void setType(int type){
this.type = type;
}
/**
@brief : gets employee's designation
@parameter : void
@retval: employee's designation
**/
public String getDesignation(){
return designation;
}
/**
@brief : sets employee's designation
@parameter : String
@retval: void
**/
public void setDesignation(String designation){
this.designation = designation;
}
}