Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
KimEntityEmploymentInformationInfo |
|
| 1.05;1.05 |
1 | /* | |
2 | * Copyright 2007-2009 The Kuali Foundation | |
3 | * | |
4 | * Licensed under the Educational Community License, Version 2.0 (the "License"); | |
5 | * you may not use this file except in compliance with the License. | |
6 | * You may obtain a copy of the License at | |
7 | * | |
8 | * http://www.opensource.org/licenses/ecl2.php | |
9 | * | |
10 | * Unless required by applicable law or agreed to in writing, software | |
11 | * distributed under the License is distributed on an "AS IS" BASIS, | |
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
13 | * See the License for the specific language governing permissions and | |
14 | * limitations under the License. | |
15 | */ | |
16 | package org.kuali.rice.kim.bo.entity.dto; | |
17 | ||
18 | import org.kuali.rice.kim.bo.entity.KimEntityEmploymentInformation; | |
19 | import org.kuali.rice.kns.util.KualiDecimal; | |
20 | ||
21 | /** | |
22 | * @author Kuali Rice Team (rice.collab@kuali.org) | |
23 | */ | |
24 | public class KimEntityEmploymentInformationInfo extends KimInactivatableInfo implements KimEntityEmploymentInformation { | |
25 | ||
26 | private static final long serialVersionUID = 1L; | |
27 | ||
28 | protected String entityEmploymentId; | |
29 | protected String employeeId; | |
30 | protected String employmentRecordId; | |
31 | protected String entityAffiliationId; | |
32 | protected String employeeStatusCode; | |
33 | protected String employeeTypeCode; | |
34 | protected String primaryDepartmentCode; | |
35 | protected KualiDecimal baseSalaryAmount; | |
36 | 0 | protected boolean primary = true; |
37 | ||
38 | /** | |
39 | * | |
40 | */ | |
41 | public KimEntityEmploymentInformationInfo() { | |
42 | 0 | super(); |
43 | 0 | active = true; |
44 | 0 | } |
45 | ||
46 | /** | |
47 | * | |
48 | */ | |
49 | public KimEntityEmploymentInformationInfo( KimEntityEmploymentInformation eei ) { | |
50 | 0 | this(); |
51 | 0 | if ( eei != null ) { |
52 | 0 | entityEmploymentId = eei.getEntityEmploymentId(); |
53 | 0 | employeeId = eei.getEmployeeId(); |
54 | 0 | employmentRecordId = eei.getEmploymentRecordId(); |
55 | 0 | entityAffiliationId = eei.getEntityAffiliationId(); |
56 | 0 | employeeStatusCode = eei.getEmployeeStatusCode(); |
57 | 0 | employeeTypeCode = eei.getEmployeeTypeCode(); |
58 | 0 | primaryDepartmentCode = eei.getPrimaryDepartmentCode(); |
59 | 0 | baseSalaryAmount = eei.getBaseSalaryAmount(); |
60 | 0 | primary = eei.isPrimary(); |
61 | 0 | active = eei.isActive(); |
62 | } | |
63 | 0 | } |
64 | ||
65 | /** | |
66 | * {@inheritDoc} | |
67 | * @see org.kuali.rice.kim.bo.entity.KimEntityEmploymentInformation#getEntityEmploymentId() | |
68 | */ | |
69 | public String getEntityEmploymentId() { | |
70 | 0 | return entityEmploymentId; |
71 | } | |
72 | ||
73 | /** | |
74 | * @param entityEmploymentId the entityEmploymentId to set | |
75 | */ | |
76 | public void setEntityEmploymentId(String entityEmploymentId) { | |
77 | 0 | this.entityEmploymentId = entityEmploymentId; |
78 | 0 | } |
79 | ||
80 | /** | |
81 | * {@inheritDoc} | |
82 | * @see org.kuali.rice.kim.bo.entity.KimEntityEmploymentInformation#getEmployeeId() | |
83 | */ | |
84 | public String getEmployeeId() { | |
85 | 0 | return employeeId; |
86 | } | |
87 | ||
88 | /** | |
89 | * @param employeeId the employeeId to set | |
90 | */ | |
91 | public void setEmployeeId(String employeeId) { | |
92 | 0 | this.employeeId = employeeId; |
93 | 0 | } |
94 | ||
95 | /** | |
96 | * {@inheritDoc} | |
97 | * @see org.kuali.rice.kim.bo.entity.KimEntityEmploymentInformation#getEmploymentRecordId() | |
98 | */ | |
99 | public String getEmploymentRecordId() { | |
100 | 0 | return employmentRecordId; |
101 | } | |
102 | ||
103 | /** | |
104 | * @param employmentRecordId the employmentRecordId to set | |
105 | */ | |
106 | public void setEmploymentRecordId(String employmentRecordId) { | |
107 | 0 | this.employmentRecordId = employmentRecordId; |
108 | 0 | } |
109 | ||
110 | /** | |
111 | * {@inheritDoc} | |
112 | * @see org.kuali.rice.kim.bo.entity.KimEntityEmploymentInformation#getEntityAffiliationId() | |
113 | */ | |
114 | public String getEntityAffiliationId() { | |
115 | 0 | return entityAffiliationId; |
116 | } | |
117 | ||
118 | /** | |
119 | * @param entityAffiliationId the entityAffiliationId to set | |
120 | */ | |
121 | public void setEntityAffiliationId(String entityAffiliationId) { | |
122 | 0 | this.entityAffiliationId = entityAffiliationId; |
123 | 0 | } |
124 | ||
125 | /** | |
126 | * {@inheritDoc} | |
127 | * @see org.kuali.rice.kim.bo.entity.KimEntityEmploymentInformation#getEmployeeStatusCode() | |
128 | */ | |
129 | public String getEmployeeStatusCode() { | |
130 | 0 | return employeeStatusCode; |
131 | } | |
132 | ||
133 | /** | |
134 | * @param employeeStatusCode the employeeStatusCode to set | |
135 | */ | |
136 | public void setEmployeeStatusCode(String employeeStatusCode) { | |
137 | 0 | this.employeeStatusCode = employeeStatusCode; |
138 | 0 | } |
139 | ||
140 | /** | |
141 | * {@inheritDoc} | |
142 | * @see org.kuali.rice.kim.bo.entity.KimEntityEmploymentInformation#getEmployeeTypeCode() | |
143 | */ | |
144 | public String getEmployeeTypeCode() { | |
145 | 0 | return employeeTypeCode; |
146 | } | |
147 | ||
148 | /** | |
149 | * @param employeeTypeCode the employeeTypeCode to set | |
150 | */ | |
151 | public void setEmployeeTypeCode(String employeeTypeCode) { | |
152 | 0 | this.employeeTypeCode = employeeTypeCode; |
153 | 0 | } |
154 | ||
155 | /** | |
156 | * {@inheritDoc} | |
157 | * @see org.kuali.rice.kim.bo.entity.KimEntityEmploymentInformation#getPrimaryDepartmentCode() | |
158 | */ | |
159 | public String getPrimaryDepartmentCode() { | |
160 | 0 | return primaryDepartmentCode; |
161 | } | |
162 | ||
163 | /** | |
164 | * @param primaryDepartmentCode the primaryDepartmentCode to set | |
165 | */ | |
166 | public void setPrimaryDepartmentCode(String primaryDepartmentCode) { | |
167 | 0 | this.primaryDepartmentCode = primaryDepartmentCode; |
168 | 0 | } |
169 | ||
170 | /** | |
171 | * {@inheritDoc} | |
172 | * @see org.kuali.rice.kim.bo.entity.KimEntityEmploymentInformation#getBaseSalaryAmount() | |
173 | */ | |
174 | public KualiDecimal getBaseSalaryAmount() { | |
175 | 0 | return baseSalaryAmount; |
176 | } | |
177 | ||
178 | /** | |
179 | * @param baseSalaryAmount the baseSalaryAmount to set | |
180 | */ | |
181 | public void setBaseSalaryAmount(KualiDecimal baseSalaryAmount) { | |
182 | 0 | this.baseSalaryAmount = baseSalaryAmount; |
183 | 0 | } |
184 | ||
185 | /** | |
186 | * @return the primary | |
187 | */ | |
188 | public boolean isPrimary() { | |
189 | 0 | return this.primary; |
190 | } | |
191 | ||
192 | /** | |
193 | * @param primary the primary to set | |
194 | */ | |
195 | public void setPrimary(boolean primary) { | |
196 | 0 | this.primary = primary; |
197 | 0 | } |
198 | ||
199 | } |