1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.hr.time.accrual;
17
18 import java.math.BigDecimal;
19 import java.sql.Date;
20
21 import org.kuali.hr.core.KPMEConstants;
22 import org.kuali.hr.time.HrBusinessObject;
23 import org.kuali.rice.kim.api.identity.Person;
24 import org.kuali.rice.kim.impl.identity.PersonImpl;
25
26 public class TimeOffAccrual extends HrBusinessObject {
27 public static final String CACHE_NAME = KPMEConstants.APPLICATION_NAMESPACE_CODE + "/" + "TimeOffAccrual";
28
29
30
31 private static final long serialVersionUID = 1L;
32 private String lmAccrualId;
33 private String principalId;
34 private String accrualCategory;
35 private Date effectiveDate;
36 private BigDecimal yearlyCarryover = new BigDecimal(0);
37 private BigDecimal hoursAccrued = new BigDecimal(0);
38 private BigDecimal hoursTaken = new BigDecimal(0);
39 private BigDecimal hoursAdjust = new BigDecimal(0);
40
41 private String lmAccrualCategoryId;
42
43 private AccrualCategory accrualCategoryObj;
44
45 protected PersonImpl principal;
46
47 public String getPrincipalId() {
48 return principalId;
49 }
50
51 public void setPrincipalId(String principalId) {
52 this.principalId = principalId;
53 }
54
55 public String getAccrualCategory() {
56 return accrualCategory;
57 }
58
59 public void setAccrualCategory(String accrualCategory) {
60 this.accrualCategory = accrualCategory;
61 }
62
63 public Date getEffectiveDate() {
64 return effectiveDate;
65 }
66
67 public void setEffectiveDate(Date effectiveDate) {
68 this.effectiveDate = effectiveDate;
69 }
70
71 public BigDecimal getHoursAccrued() {
72 return hoursAccrued;
73 }
74
75 public void setHoursAccrued(BigDecimal hoursAccrued) {
76 this.hoursAccrued = hoursAccrued;
77 }
78
79 public BigDecimal getHoursTaken() {
80 return hoursTaken;
81 }
82
83 public void setHoursTaken(BigDecimal hoursTaken) {
84 this.hoursTaken = hoursTaken;
85 }
86
87 public BigDecimal getHoursAdjust() {
88 return hoursAdjust;
89 }
90
91 public void setHoursAdjust(BigDecimal hoursAdjust) {
92 this.hoursAdjust = hoursAdjust;
93 }
94
95 public void setAccrualCategoryObj(AccrualCategory accrualCategoryObj) {
96 this.accrualCategoryObj = accrualCategoryObj;
97 }
98
99 public AccrualCategory getAccrualCategoryObj() {
100 return accrualCategoryObj;
101 }
102
103 public Person getPrincipal() {
104 return principal;
105 }
106
107
108 public String getLmAccrualId() {
109 return lmAccrualId;
110 }
111
112
113 public void setLmAccrualId(String lmAccrualId) {
114 this.lmAccrualId = lmAccrualId;
115 }
116
117
118 public void setPrincipal(PersonImpl principal) {
119 this.principal = principal;
120 }
121
122
123 public String getLmAccrualCategoryId() {
124 return lmAccrualCategoryId;
125 }
126
127
128 public void setLmAccrualCategoryId(String lmAccrualCategoryId) {
129 this.lmAccrualCategoryId = lmAccrualCategoryId;
130 }
131
132
133 @Override
134 public String getUniqueKey() {
135 return accrualCategory;
136 }
137
138 @Override
139 public String getId() {
140 return getLmAccrualId();
141 }
142
143 @Override
144 public void setId(String id) {
145 setLmAccrualId(id);
146 }
147
148
149 public BigDecimal getYearlyCarryover() {
150 return yearlyCarryover;
151 }
152
153
154 public void setYearlyCarryover(BigDecimal yearlyCarryover) {
155 this.yearlyCarryover = yearlyCarryover;
156 }
157
158 }