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.kpme.core.salarygroup;
17  
18  import java.math.BigDecimal;
19  
20  import org.kuali.kpme.core.api.salarygroup.SalaryGroupContract;
21  import org.kuali.kpme.core.bo.HrBusinessObject;
22  import org.kuali.kpme.core.util.HrConstants;
23  
24  import com.google.common.collect.ImmutableList;
25  public class SalaryGroup extends HrBusinessObject implements SalaryGroupContract {
26  
27  	private static final long serialVersionUID = 8169672203236887348L;
28  
29  	public static final String CACHE_NAME = HrConstants.CacheNamespace.NAMESPACE_PREFIX + "SalaryGroup";
30  	//KPME-2273/1965 Primary Business Keys List.	
31  	public static final ImmutableList<String> EQUAL_TO_FIELDS = new ImmutableList.Builder<String>()
32              .add("hrSalGroup")
33              .build();
34  
35  	
36  	private String hrSalGroupId;
37  	private String hrSalGroup;
38  	private String descr;
39  	private boolean history;
40  
41  	// fields added to position management
42  	private String institution;
43  	private String location;
44  	private BigDecimal percentTime;
45  	private String benefitsEligible;
46  	private String leaveEligible;
47  	private String leavePlan;
48  
49  	public boolean isHistory() {
50  		return history;
51  	}
52  
53  	public void setHistory(boolean history) {
54  		this.history = history;
55  	}
56  
57  	public String getHrSalGroupId() {
58  		return hrSalGroupId;
59  	}
60  
61  	public void setHrSalGroupId(String hrSalGroupId) {
62  		this.hrSalGroupId = hrSalGroupId;
63  	}
64  
65  	public String getHrSalGroup() {
66  		return hrSalGroup;
67  	}
68  
69  	public void setHrSalGroup(String hrSalGroup) {
70  		this.hrSalGroup = hrSalGroup;
71  	}
72  
73  	public String getDescr() {
74  		return descr;
75  	}
76  
77  	public void setDescr(String descr) {
78  		this.descr = descr;
79  	}
80  
81  	@Override
82  	public String getUniqueKey() {
83  		return getHrSalGroup() + "_" + getInstitution() + "_" + getLocation();
84  	}
85  
86  	@Override
87  	public String getId() {
88  		return getHrSalGroupId();
89  	}
90  
91  	@Override
92  	public void setId(String id) {
93  		setHrSalGroupId(id);
94  	}
95  
96  	public String getInstitution() {
97  		return institution;
98  	}
99  
100 	public void setInstitution(String institution) {
101 		this.institution = institution;
102 	}
103 
104 	public BigDecimal getPercentTime() {
105 		return percentTime;
106 	}
107 
108 	public void setPercentTime(BigDecimal percentTime) {
109 		this.percentTime = percentTime;
110 	}
111 
112 	public String getBenefitsEligible() {
113 		return benefitsEligible;
114 	}
115 
116 	public void setBenefitsEligible(String benefitsEligible) {
117 		this.benefitsEligible = benefitsEligible;
118 	}
119 
120 	public String getLeaveEligible() {
121 		return leaveEligible;
122 	}
123 
124 	public void setLeaveEligible(String leaveEligible) {
125 		this.leaveEligible = leaveEligible;
126 	}
127 
128 	public String getLeavePlan() {
129 		return leavePlan;
130 	}
131 
132 	public void setLeavePlan(String leavePlan) {
133 		this.leavePlan = leavePlan;
134 	}
135 
136 	public String getLocation() {
137 		return location;
138 	}
139 
140 	public void setLocation(String location) {
141 		this.location = location;
142 	}
143 
144 }