001 /* 002 * Copyright 2011 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.kfs.module.endow.businessobject; 017 018 import java.sql.Date; 019 import java.util.LinkedHashMap; 020 021 import org.kuali.kfs.module.endow.EndowPropertyConstants; 022 import org.kuali.rice.kns.bo.PersistableBusinessObjectBase; 023 import org.kuali.rice.kns.util.KualiInteger; 024 025 /** 026 * This KemidDonorStatement class provides the Donor to receive annual statements on the KEMID. 027 */ 028 public class KemidDonorStatement extends PersistableBusinessObjectBase { 029 030 private String kemid; 031 private String donorId; 032 private KualiInteger donorSeq; 033 private String donorStatementCode; 034 private String combineWithDonorId; 035 private Date effectiveDate; 036 private Date terminationDate; 037 private String terminationReason; 038 private String donorLabel; 039 040 private KEMID kemidObjRef; 041 private Donor donor; 042 private Donor combineWithDonor; 043 private DonorStatementCode donorStatement; 044 private DonorLabel donorLabelObjRef; 045 046 047 /** 048 * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper() 049 */ 050 @Override 051 protected LinkedHashMap toStringMapper() { 052 LinkedHashMap<String, String> m = new LinkedHashMap<String, String>(); 053 m.put(EndowPropertyConstants.KEMID, this.kemid); 054 m.put(EndowPropertyConstants.KEMID_DONOR_STATEMENT_SEQ, String.valueOf(donorSeq)); 055 m.put(EndowPropertyConstants.KEMID_DONOR_STATEMENT_ID, donorId); 056 return m; 057 } 058 059 /** 060 * Gets the combineWithDonorId. 061 * 062 * @return combineWithDonorId 063 */ 064 public String getCombineWithDonorId() { 065 return combineWithDonorId; 066 } 067 068 /** 069 * Sets the combineWithDonorId. 070 * 071 * @param combineWithDonorId 072 */ 073 public void setCombineWithDonorId(String combineWithDonorId) { 074 this.combineWithDonorId = combineWithDonorId; 075 } 076 077 /** 078 * Gets the donorId. 079 * 080 * @return donorId 081 */ 082 public String getDonorId() { 083 return donorId; 084 } 085 086 /** 087 * Sets the donorId. 088 * 089 * @param donorId 090 */ 091 public void setDonorId(String donorId) { 092 this.donorId = donorId; 093 } 094 095 /** 096 * Gets the donorSeq. 097 * 098 * @return donorSeq 099 */ 100 public KualiInteger getDonorSeq() { 101 return donorSeq; 102 } 103 104 /** 105 * Sets the donorSeq. 106 * 107 * @param donorSeq 108 */ 109 public void setDonorSeq(KualiInteger donorSeq) { 110 this.donorSeq = donorSeq; 111 } 112 113 /** 114 * Gets the donorStatementCode. 115 * 116 * @return donorStatementCode 117 */ 118 public String getDonorStatementCode() { 119 return donorStatementCode; 120 } 121 122 /** 123 * Sets the donorStatementCode. 124 * 125 * @param donorStatementCode 126 */ 127 public void setDonorStatementCode(String donorStatementCode) { 128 this.donorStatementCode = donorStatementCode; 129 } 130 131 /** 132 * Gets the effectiveDate. 133 * 134 * @return effectiveDate 135 */ 136 public Date getEffectiveDate() { 137 return effectiveDate; 138 } 139 140 /** 141 * Sets the effectiveDate. 142 * 143 * @param effectiveDate 144 */ 145 public void setEffectiveDate(Date effectiveDate) { 146 this.effectiveDate = effectiveDate; 147 } 148 149 /** 150 * Gets the kemid. 151 * 152 * @return kemid 153 */ 154 public String getKemid() { 155 return kemid; 156 } 157 158 /** 159 * Sets the kemid. 160 * 161 * @param kemid 162 */ 163 public void setKemid(String kemid) { 164 this.kemid = kemid; 165 } 166 167 /** 168 * Gets the terminationDate. 169 * 170 * @return terminationDate 171 */ 172 public Date getTerminationDate() { 173 return terminationDate; 174 } 175 176 /** 177 * Sets the terminationDate. 178 * 179 * @param terminationDate 180 */ 181 public void setTerminationDate(Date terminationDate) { 182 this.terminationDate = terminationDate; 183 } 184 185 /** 186 * Gets the terminationReason. 187 * 188 * @return terminationReason 189 */ 190 public String getTerminationReason() { 191 return terminationReason; 192 } 193 194 /** 195 * Sets the terminationReason. 196 * 197 * @param terminationReason 198 */ 199 public void setTerminationReason(String terminationReason) { 200 this.terminationReason = terminationReason; 201 } 202 203 /** 204 * Gets the donor. 205 * 206 * @return donor 207 */ 208 public Donor getDonor() { 209 return donor; 210 } 211 212 /** 213 * Sets the donor. 214 * 215 * @param donor 216 */ 217 public void setDonor(Donor donor) { 218 this.donor = donor; 219 } 220 221 /** 222 * Gets the donorStatement. 223 * 224 * @return donorStatement 225 */ 226 public DonorStatementCode getDonorStatement() { 227 return donorStatement; 228 } 229 230 /** 231 * Sets the donorStatement. 232 * 233 * @param donorStatement 234 */ 235 public void setDonorStatement(DonorStatementCode donorStatement) { 236 this.donorStatement = donorStatement; 237 } 238 239 /** 240 * Gets the kemidObjRef. 241 * 242 * @return kemidObjRef 243 */ 244 public KEMID getKemidObjRef() { 245 return kemidObjRef; 246 } 247 248 /** 249 * Sets the kemidObjRef. 250 * 251 * @param kemidObjRef 252 */ 253 public void setKemidObjRef(KEMID kemidObjRef) { 254 this.kemidObjRef = kemidObjRef; 255 } 256 257 /** 258 * Gets the combineWithDonor. 259 * 260 * @return combineWithDonor 261 */ 262 public Donor getCombineWithDonor() { 263 return combineWithDonor; 264 } 265 266 /** 267 * Sets the combineWithDonor. 268 * 269 * @param combineWithDonor 270 */ 271 public void setCombineWithDonor(Donor combineWithDonor) { 272 this.combineWithDonor = combineWithDonor; 273 } 274 275 /** 276 * Gets the donorLabel. 277 * 278 * @return donorLabel 279 */ 280 public String getDonorLabel() { 281 return donorLabel; 282 } 283 284 /** 285 * Sets the donorLabel. 286 * 287 * @param donorLabel 288 */ 289 public void setDonorLabel(String donorLabel) { 290 this.donorLabel = donorLabel; 291 } 292 293 /** 294 * Gets the donorLabelObjRef. 295 * 296 * @return donorLabelObjRef 297 */ 298 public DonorLabel getDonorLabelObjRef() { 299 return donorLabelObjRef; 300 } 301 302 /** 303 * Sets the donorLabelObjRef. 304 * 305 * @param donorLabelObjRef 306 */ 307 public void setDonorLabelObjRef(DonorLabel donorLabelObjRef) { 308 this.donorLabelObjRef = donorLabelObjRef; 309 } 310 }