-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathJob.java
More file actions
149 lines (119 loc) · 4.03 KB
/
Job.java
File metadata and controls
149 lines (119 loc) · 4.03 KB
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package recruitmentsystem;
import java.util.ArrayList;
/**
*
* @author mahmo
*/
public class Job implements Job_Read_Only {
private String title;
private String description;
private float salary;
private int workingHours;
private boolean Adminapproval;
private String JobCategory;
private int NumberOfAvilablePositions;
private int ExprienceNeeded;
private String CareerLevel;
private int JobID;
private int EmpID;
public Job(String title, String description, float salary, int workingHours, String JobCategory, int NumberOfAvilablePositions, int ExprienceNeeded, String CareerLevel, int JobID) {
this.title = title;
this.description = description;
this.salary = salary;
this.workingHours = workingHours;
this.JobCategory = JobCategory;
this.NumberOfAvilablePositions = NumberOfAvilablePositions;
this.ExprienceNeeded = ExprienceNeeded;
this.CareerLevel = CareerLevel;
this.Adminapproval = false;
this.JobID = JobID;
}
public Job(int JobID,String title, String description, float salary, int workingHours, String JobCategory, int NumberOfAvilablePositions, int ExprienceNeeded, String CareerLevel, int EmpID) {
this.title = title;
this.description = description;
this.salary = salary;
this.workingHours = workingHours;
this.JobCategory = JobCategory;
this.NumberOfAvilablePositions = NumberOfAvilablePositions;
this.ExprienceNeeded = ExprienceNeeded;
this.CareerLevel = CareerLevel;
this.JobID = JobID;
this.EmpID = EmpID;
}
public int getJobID() {
return JobID;
}
public void setJobID(int JobID) {
this.JobID = JobID;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public float getSalary() {
return salary;
}
public void setSalary(float salary) {
this.salary = salary;
}
public int getWorkingHours() {
return workingHours;
}
public void setWorkingHours(int workingHours) {
this.workingHours = workingHours;
}
public boolean isAdminapproval() {
return Adminapproval;
}
public void setAdminapproval(boolean Adminapproval) {
this.Adminapproval = Adminapproval;
}
public String getJobCategory() {
return JobCategory;
}
public void setJobCategory(String JobCategory) {
this.JobCategory = JobCategory;
}
public int getNumberOfAvilablePositions() {
return NumberOfAvilablePositions;
}
public void setNumberOfAvilablePositions(int NumberOfAvilablePositions) {
this.NumberOfAvilablePositions = NumberOfAvilablePositions;
}
public int getExprienceNeeded() {
return ExprienceNeeded;
}
public void setExprienceNeeded(int ExprienceNeeded) {
this.ExprienceNeeded = ExprienceNeeded;
}
public String getCareerLevel() {
return CareerLevel;
}
public void setCareerLevel(String CareerLevel) {
this.CareerLevel = CareerLevel;
}
public int getEmpID() {
return EmpID;
}
public void setEmpID(int EmpID) {
this.EmpID = EmpID;
}
@Override
public String toString() {
return String.format("Job title : " + title + "\nDescription : " + description + "\nSalary : " + salary + "\nWorking Hours : " + workingHours + "\nJob Category : " + JobCategory + "\nAvilable Positions : " + NumberOfAvilablePositions + "\nExprience Needed : ") + ExprienceNeeded + "\nCareer Level : " + CareerLevel + ".";
}
//public void DestroyJob(){}
}