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.math.BigDecimal; 019 import java.util.LinkedHashMap; 020 021 import org.kuali.rice.kns.bo.TransientBusinessObjectBase; 022 023 public class AccrualsProcessingTotalReportLine extends TransientBusinessObjectBase { 024 025 protected String accrualMethod; 026 protected String securityId; 027 protected int recordsUpdated; 028 protected BigDecimal totalAccrualAmount = BigDecimal.ZERO; 029 030 /** 031 * Constructs a AccrualsProcessingTotalReportLine.java. 032 * 033 * @param accrualMethod 034 * @param securityId 035 */ 036 public AccrualsProcessingTotalReportLine(String securityId, String accrualMethod) { 037 this.securityId = securityId; 038 this.accrualMethod = accrualMethod; 039 } 040 041 /** 042 * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper() 043 */ 044 @Override 045 protected LinkedHashMap toStringMapper() { 046 // TODO Auto-generated method stub 047 return null; 048 } 049 050 /** 051 * Gets the accrualMethod. 052 * 053 * @return accrualMethod 054 */ 055 public String getAccrualMethod() { 056 return accrualMethod; 057 } 058 059 /** 060 * Sets the accrualMethod. 061 * 062 * @param accrualMethod 063 */ 064 public void setAccrualMethod(String accrualMethod) { 065 this.accrualMethod = accrualMethod; 066 } 067 068 /** 069 * Gets the securityId. 070 * 071 * @return securityId 072 */ 073 public String getSecurityId() { 074 return securityId; 075 } 076 077 /** 078 * Sets the securityId. 079 * 080 * @param securityId 081 */ 082 public void setSecurityId(String securityId) { 083 this.securityId = securityId; 084 } 085 086 /** 087 * Gets the totalAccrualAmount 088 * 089 * @return 090 */ 091 public BigDecimal getTotalAccrualAmount() { 092 return totalAccrualAmount; 093 } 094 095 /** 096 * This method... 097 * 098 * @param totalAccrualAmount 099 */ 100 public void setTotalAccrualAmount(BigDecimal totalAccrualAmount) { 101 this.totalAccrualAmount = totalAccrualAmount; 102 } 103 104 /** 105 * Gets the recordsUpdated. 106 * 107 * @return recordsUpdated 108 */ 109 public int getRecordsUpdated() { 110 return recordsUpdated; 111 } 112 113 /** 114 * Sets the recordsUpdated. 115 * 116 * @param recordsUpdated 117 */ 118 public void setRecordsUpdated(int recordsUpdated) { 119 this.recordsUpdated = recordsUpdated; 120 } 121 122 /** 123 * Adds given accrual amount to the total accrual amount for reporting. 124 * 125 * @param accrualAmount 126 */ 127 public void addAccrualAmount(BigDecimal accrualAmount) { 128 this.totalAccrualAmount = this.totalAccrualAmount.add(accrualAmount); 129 this.recordsUpdated++; 130 } 131 132 }