1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.hr.lm.leavedonation;
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.hr.time.earncode.EarnCode;
24 import org.kuali.rice.kim.api.identity.Person;
25
26 public class LeaveDonation extends HrBusinessObject {
27 public static final String CACHE_NAME = KPMEConstants.APPLICATION_NAMESPACE_CODE + "/" + "LeaveDonation";
28 private static final long serialVersionUID = 1L;
29
30 private String lmLeaveDonationId;
31 private String donatedAccrualCategory;
32 private String recipientsAccrualCategory;
33 private BigDecimal amountDonated = new BigDecimal("0.0");
34 private BigDecimal amountReceived = new BigDecimal("0.0");
35 private String donorsPrincipalID;
36 private String recipientsPrincipalID;
37 private String description;
38
39 private Boolean history;
40
41 private transient AccrualCategory accrualCategoryObj;
42 private transient Person personObj;
43 private transient EarnCode earnCodeObj;
44
45 private String donatedEarnCode;
46 private String recipientsEarnCode;
47
48 public EarnCode getEarnCodeObj() {
49 return earnCodeObj;
50 }
51
52 public void setEarnCodeObj(EarnCode earnCodeObj) {
53 this.earnCodeObj = earnCodeObj;
54 }
55
56 public String getDonatedEarnCode() {
57 return donatedEarnCode;
58 }
59
60 public void setDonatedEarnCode(String donatedEarnCode) {
61 this.donatedEarnCode = donatedEarnCode;
62 }
63
64 public String getRecipientsEarnCode() {
65 return recipientsEarnCode;
66 }
67
68 public void setRecipientsEarnCode(String recipientsEarnCode) {
69 this.recipientsEarnCode = recipientsEarnCode;
70 }
71
72 public String getLmLeaveDonationId() {
73 return lmLeaveDonationId;
74 }
75
76 public void setLmLeaveDonationId(String lmLeaveDonationId) {
77 this.lmLeaveDonationId = lmLeaveDonationId;
78 }
79
80 public String getDonatedAccrualCategory() {
81 return donatedAccrualCategory;
82 }
83
84 public void setDonatedAccrualCategory(String donatedAccrualCategory) {
85 this.donatedAccrualCategory = donatedAccrualCategory;
86 }
87
88 public String getRecipientsAccrualCategory() {
89 return recipientsAccrualCategory;
90 }
91
92 public void setRecipientsAccrualCategory(String recipientsAccrualCategory) {
93 this.recipientsAccrualCategory = recipientsAccrualCategory;
94 }
95
96 public BigDecimal getAmountDonated() {
97 return amountDonated;
98 }
99
100 public void setAmountDonated(BigDecimal amountDonated) {
101 this.amountDonated = amountDonated;
102 }
103
104 public BigDecimal getAmountReceived() {
105 return amountReceived;
106 }
107
108 public void setAmountReceived(BigDecimal amountReceived) {
109 this.amountReceived = amountReceived;
110 }
111
112 public String getDonorsPrincipalID() {
113 return donorsPrincipalID;
114 }
115
116 public void setDonorsPrincipalID(String donorsPrincipalID) {
117 this.donorsPrincipalID = donorsPrincipalID;
118 }
119
120 public String getRecipientsPrincipalID() {
121 return recipientsPrincipalID;
122 }
123
124 public void setRecipientsPrincipalID(String recipientsPrincipalID) {
125 this.recipientsPrincipalID = recipientsPrincipalID;
126 }
127
128 public String getDescription() {
129 return description;
130 }
131
132 public void setDescription(String description) {
133 this.description = description;
134 }
135
136 public Boolean getHistory() {
137 return history;
138 }
139
140 public void setHistory(Boolean history) {
141 this.history = history;
142 }
143
144 public Person getPersonObj() {
145 return personObj;
146 }
147
148 public void setPersonObj(Person personObj) {
149 this.personObj = personObj;
150 }
151
152 public AccrualCategory getAccrualCategoryObj() {
153 return accrualCategoryObj;
154 }
155
156 public void setAccrualCategoryObj(AccrualCategory accrualCategoryObj) {
157 this.accrualCategoryObj = accrualCategoryObj;
158 }
159
160 @Override
161 protected String getUniqueKey() {
162 return getDonorsPrincipalID() +"_"+ getRecipientsPrincipalID() +"_"+ getDonatedAccrualCategory() +"_"+ getRecipientsAccrualCategory();
163 }
164
165 @Override
166 public String getId() {
167 return getLmLeaveDonationId();
168 }
169
170 @Override
171 public void setId(String id) {
172 setLmLeaveDonationId(id);
173 }
174
175 }