001    /**
002     * Copyright 2004-2013 The Kuali Foundation
003     *
004     * Licensed under the Educational Community License, Version 2.0 (the "License");
005     * you may not use this file except in compliance with the License.
006     * You may obtain a copy of the License at
007     *
008     * http://www.opensource.org/licenses/ecl2.php
009     *
010     * Unless required by applicable law or agreed to in writing, software
011     * distributed under the License is distributed on an "AS IS" BASIS,
012     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013     * See the License for the specific language governing permissions and
014     * limitations under the License.
015     */
016    package org.kuali.hr.paygrade;
017    
018    import org.kuali.hr.core.KPMEConstants;
019    import org.kuali.hr.time.HrBusinessObject;
020    import org.kuali.hr.time.salgroup.SalGroup;
021    
022    public class PayGrade extends HrBusinessObject {
023    
024            private static final long serialVersionUID = -5736949952127760566L;
025    
026            public static final String CACHE_NAME = KPMEConstants.APPLICATION_NAMESPACE_CODE + "/" + "PayGrade";
027    
028            private String hrPayGradeId;
029            private String payGrade;
030            private String description;
031            private String userPrincipalId;
032            private String salGroup;
033            private SalGroup salGroupObj;
034        private String history;
035    
036        public String getHistory() {
037            return history;
038        }
039    
040        public void setHistory(String history) {
041            this.history = history;
042        }
043    
044            public String getHrPayGradeId() {
045                    return hrPayGradeId;
046            }
047    
048            public void setHrPayGradeId(String hrPayGradeId) {
049                    this.hrPayGradeId = hrPayGradeId;
050            }
051    
052            public String getPayGrade() {
053                    return payGrade;
054            }
055    
056            public void setPayGrade(String payGrade) {
057                    this.payGrade = payGrade;
058            }
059    
060            public String getDescription() {
061                    return description;
062            }
063    
064            public void setDescription(String description) {
065                    this.description = description;
066            }
067    
068            public void setUserPrincipalId(String userPrincipalId) {
069                    this.userPrincipalId = userPrincipalId;
070            }
071    
072            public String getUserPrincipalId() {
073                    return userPrincipalId;
074            }
075    
076            @Override
077            public String getUniqueKey() {
078                    return payGrade;
079            }
080            
081            @Override
082            public String getId() {
083                    return getHrPayGradeId();
084            }
085    
086            @Override
087            public void setId(String id) {
088                    setHrPayGradeId(id);
089            }
090            
091            public String getSalGroup() {
092                    return salGroup;
093            }
094    
095            public void setSalGroup(String salGroup) {
096                    this.salGroup = salGroup;
097            }
098    
099            public SalGroup getSalGroupObj() {
100                    return salGroupObj;
101            }
102    
103            public void setSalGroupObj(SalGroup salGroupObj) {
104                    this.salGroupObj = salGroupObj;
105            }
106    
107    }