View Javadoc

1   /**
2    * Copyright 2004-2013 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.hr.paygrade;
17  
18  import org.kuali.hr.core.KPMEConstants;
19  import org.kuali.hr.time.HrBusinessObject;
20  import org.kuali.hr.time.salgroup.SalGroup;
21  
22  public class PayGrade extends HrBusinessObject {
23  
24  	private static final long serialVersionUID = -5736949952127760566L;
25  
26  	public static final String CACHE_NAME = KPMEConstants.APPLICATION_NAMESPACE_CODE + "/" + "PayGrade";
27  
28  	private String hrPayGradeId;
29  	private String payGrade;
30  	private String description;
31  	private String userPrincipalId;
32  	private String salGroup;
33  	private SalGroup salGroupObj;
34  
35  	public String getHrPayGradeId() {
36  		return hrPayGradeId;
37  	}
38  
39  	public void setHrPayGradeId(String hrPayGradeId) {
40  		this.hrPayGradeId = hrPayGradeId;
41  	}
42  
43  	public String getPayGrade() {
44  		return payGrade;
45  	}
46  
47  	public void setPayGrade(String payGrade) {
48  		this.payGrade = payGrade;
49  	}
50  
51  	public String getDescription() {
52  		return description;
53  	}
54  
55  	public void setDescription(String description) {
56  		this.description = description;
57  	}
58  
59  	public void setUserPrincipalId(String userPrincipalId) {
60  		this.userPrincipalId = userPrincipalId;
61  	}
62  
63  	public String getUserPrincipalId() {
64  		return userPrincipalId;
65  	}
66  
67  	@Override
68  	public String getUniqueKey() {
69  		return payGrade;
70  	}
71  	
72  	@Override
73  	public String getId() {
74  		return getHrPayGradeId();
75  	}
76  
77  	@Override
78  	public void setId(String id) {
79  		setHrPayGradeId(id);
80  	}
81  	
82  	public String getSalGroup() {
83  		return salGroup;
84  	}
85  
86  	public void setSalGroup(String salGroup) {
87  		this.salGroup = salGroup;
88  	}
89  
90  	public SalGroup getSalGroupObj() {
91  		return salGroupObj;
92  	}
93  
94  	public void setSalGroupObj(SalGroup salGroupObj) {
95  		this.salGroupObj = salGroupObj;
96  	}
97  
98  }