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 java.sql.Date;
019    import java.sql.Timestamp;
020    
021    import org.kuali.hr.core.KPMEConstants;
022    import org.kuali.hr.time.HrBusinessObject;
023    import org.kuali.hr.time.salgroup.SalGroup;
024    
025    public class PayGrade extends HrBusinessObject {
026        public static final String CACHE_NAME = KPMEConstants.APPLICATION_NAMESPACE_CODE + "/" + "PayGrade";
027            /**
028             * 
029             */
030            private static final long serialVersionUID = 1L;
031            private String hrPayGradeId;
032            private String payGrade;
033            private String description;
034            private String userPrincipalId;
035        private String salGroup;
036        private SalGroup salGroupObj;
037    
038        public String getHrPayGradeId() {
039                    return hrPayGradeId;
040            }
041    
042            public void setHrPayGradeId(String hrPayGradeId) {
043                    this.hrPayGradeId = hrPayGradeId;
044            }
045    
046            public String getPayGrade() {
047                    return payGrade;
048            }
049    
050            public void setPayGrade(String payGrade) {
051                    this.payGrade = payGrade;
052            }
053    
054            public String getDescription() {
055                    return description;
056            }
057    
058            public void setDescription(String description) {
059                    this.description = description;
060            }
061    
062            public Date getEffectiveDate() {
063                    return effectiveDate;
064            }
065    
066            public void setEffectiveDate(Date effectiveDate) {
067                    this.effectiveDate = effectiveDate;
068            }
069    
070            public Timestamp getTimestamp() {
071                    return timestamp;
072            }
073    
074            public void setTimestamp(Timestamp timestamp) {
075                    this.timestamp = timestamp;
076            }
077    
078            public Boolean getActive() {
079                    return active;
080            }
081    
082            public void setActive(Boolean active) {
083                    this.active = active;
084            }
085    
086            public void setUserPrincipalId(String userPrincipalId) {
087                    this.userPrincipalId = userPrincipalId;
088            }
089    
090            public String getUserPrincipalId() {
091                    return userPrincipalId;
092            }
093    
094            @Override
095            public String getUniqueKey() {
096                    return payGrade;
097            }
098            
099            @Override
100            public String getId() {
101                    return getHrPayGradeId();
102            }
103    
104            @Override
105            public void setId(String id) {
106                    setHrPayGradeId(id);
107            }
108    
109        public String getSalGroup() {
110            return salGroup;
111        }
112    
113        public void setSalGroup(String salGroup) {
114            this.salGroup = salGroup;
115        }
116    
117            public SalGroup getSalGroupObj() {
118                    return salGroupObj;
119            }
120    
121            public void setSalGroupObj(SalGroup salGroupObj) {
122                    this.salGroupObj = salGroupObj;
123            }
124    
125    }