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
20 import org.kuali.hr.core.KPMEConstants;
21 import org.kuali.hr.lm.accrual.AccrualCategory;
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
28 private static final long serialVersionUID = -3882880617812198775L;
29
30 public static final String CACHE_NAME = KPMEConstants.APPLICATION_NAMESPACE_CODE + "/" + "TimeOffAccrual";
31
32 private String lmAccrualId;
33 private String principalId;
34 private String accrualCategory;
35 private BigDecimal yearlyCarryover = new BigDecimal(0);
36 private BigDecimal hoursAccrued = new BigDecimal(0);
37 private BigDecimal hoursTaken = new BigDecimal(0);
38 private BigDecimal hoursAdjust = new BigDecimal(0);
39
40 private String lmAccrualCategoryId;
41
42 private AccrualCategory accrualCategoryObj;
43
44 protected PersonImpl principal;
45
46 public String getPrincipalId() {
47 return principalId;
48 }
49
50 public void setPrincipalId(String principalId) {
51 this.principalId = principalId;
52 }
53
54 public String getAccrualCategory() {
55 return accrualCategory;
56 }
57
58 public void setAccrualCategory(String accrualCategory) {
59 this.accrualCategory = accrualCategory;
60 }
61
62 public BigDecimal getHoursAccrued() {
63 return hoursAccrued;
64 }
65
66 public void setHoursAccrued(BigDecimal hoursAccrued) {
67 this.hoursAccrued = hoursAccrued;
68 }
69
70 public BigDecimal getHoursTaken() {
71 return hoursTaken;
72 }
73
74 public void setHoursTaken(BigDecimal hoursTaken) {
75 this.hoursTaken = hoursTaken;
76 }
77
78 public BigDecimal getHoursAdjust() {
79 return hoursAdjust;
80 }
81
82 public void setHoursAdjust(BigDecimal hoursAdjust) {
83 this.hoursAdjust = hoursAdjust;
84 }
85
86 public void setAccrualCategoryObj(AccrualCategory accrualCategoryObj) {
87 this.accrualCategoryObj = accrualCategoryObj;
88 }
89
90 public AccrualCategory getAccrualCategoryObj() {
91 return accrualCategoryObj;
92 }
93
94 public Person getPrincipal() {
95 return principal;
96 }
97
98
99 public String getLmAccrualId() {
100 return lmAccrualId;
101 }
102
103
104 public void setLmAccrualId(String lmAccrualId) {
105 this.lmAccrualId = lmAccrualId;
106 }
107
108
109 public void setPrincipal(PersonImpl principal) {
110 this.principal = principal;
111 }
112
113
114 public String getLmAccrualCategoryId() {
115 return lmAccrualCategoryId;
116 }
117
118
119 public void setLmAccrualCategoryId(String lmAccrualCategoryId) {
120 this.lmAccrualCategoryId = lmAccrualCategoryId;
121 }
122
123
124 @Override
125 public String getUniqueKey() {
126 return accrualCategory;
127 }
128
129 @Override
130 public String getId() {
131 return getLmAccrualId();
132 }
133
134 @Override
135 public void setId(String id) {
136 setLmAccrualId(id);
137 }
138
139
140 public BigDecimal getYearlyCarryover() {
141 return yearlyCarryover;
142 }
143
144
145 public void setYearlyCarryover(BigDecimal yearlyCarryover) {
146 this.yearlyCarryover = yearlyCarryover;
147 }
148
149 }