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.time.graceperiod.rule;
17  
18  import java.math.BigDecimal;
19  
20  import org.kuali.hr.core.KPMEConstants;
21  import org.kuali.hr.time.HrBusinessObject;
22  
23  public class GracePeriodRule extends HrBusinessObject {
24  
25  	private static final long serialVersionUID = 2756221187837436165L;
26  
27  	public static final String CACHE_NAME = KPMEConstants.APPLICATION_NAMESPACE_CODE + "/" + "GracePeriodRule";
28  
29  	private String tkGracePeriodRuleId;
30  	private BigDecimal hourFactor;
31  	private String userPrincipalId;
32  
33  	public BigDecimal getHourFactor() {
34  	    return hourFactor;
35  	}
36  
37  	public void setHourFactor(BigDecimal hourFactor) {
38  	    this.hourFactor = hourFactor;
39  	}
40  
41  	public String getUserPrincipalId() {
42  	    return userPrincipalId;
43  	}
44  
45  	public void setUserPrincipalId(String userPrincipalId) {
46  	    this.userPrincipalId = userPrincipalId;
47  	}
48  
49  	public String getTkGracePeriodRuleId() {
50  		return tkGracePeriodRuleId;
51  	}
52  
53  	public void setTkGracePeriodRuleId(String tkGracePeriodRuleId) {
54  		this.tkGracePeriodRuleId = tkGracePeriodRuleId;
55  	}
56  
57  	@Override
58  	public String getUniqueKey() {
59  		return hourFactor + "";
60  	}
61  
62  	@Override
63  	public String getId() {
64  		return getTkGracePeriodRuleId();
65  	}
66  
67  	@Override
68  	public void setId(String id) {
69  		setTkGracePeriodRuleId(id);
70  	}
71  
72  }