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 import org.kuali.rice.kns.util.KualiDecimal; 023 import org.kuali.rice.kns.util.KualiInteger; 024 025 public class GLInterfaceBatchExceptionTableRowValues extends TransientBusinessObjectBase { 026 private String documentType; 027 private String eDocNumber; 028 private String kEMID; 029 private BigDecimal incomeAmount = BigDecimal.ZERO; 030 private BigDecimal principalAmount = BigDecimal.ZERO; 031 private BigDecimal securityCost = BigDecimal.ZERO; 032 private BigDecimal longTermGainLoss = BigDecimal.ZERO; 033 private BigDecimal shortTermGainLoss = BigDecimal.ZERO; 034 035 public GLInterfaceBatchExceptionTableRowValues() { 036 documentType = " "; 037 eDocNumber = " "; 038 kEMID = " "; 039 } 040 041 /** 042 * Gets the documentType attribute. 043 * @return Returns the documentType. 044 */ 045 public String getDocumentType() { 046 return documentType; 047 } 048 049 /** 050 * Sets the documentType attribute. 051 * @return Returns the documentType. 052 */ 053 public void setDocumentType(String documentType) { 054 this.documentType = documentType; 055 } 056 057 /** 058 * Gets the eDocNumber attribute. 059 * @return Returns the eDocNumber. 060 */ 061 public String getEDocNumber() { 062 return eDocNumber; 063 } 064 065 /** 066 * Sets the eDocNumber attribute. 067 * @return Returns the eDocNumber. 068 */ 069 public void setEDocNumber(String eDocNumber) { 070 this.eDocNumber = eDocNumber; 071 } 072 073 /** 074 * Gets the kEMID attribute. 075 * @return Returns the kEMID. 076 */ 077 public String getKEMID() { 078 return kEMID; 079 } 080 081 /** 082 * Sets the kEMID attribute. 083 * @return Returns the kEMID. 084 */ 085 public void setKEMID(String kEMID) { 086 this.kEMID = kEMID; 087 } 088 089 /** 090 * Gets the incomeAmount attribute. 091 * @return Returns the incomeAmount. 092 */ 093 public BigDecimal getIncomeAmount() { 094 return incomeAmount; 095 } 096 097 /** 098 * Sets the incomeAmount attribute value. 099 * @param incomeAmount The incomeAmount to set. 100 */ 101 public void setIncomeAmount(BigDecimal incomeAmount) { 102 this.incomeAmount = incomeAmount; 103 } 104 105 /** 106 * Gets the principalAmount attribute. 107 * @return Returns the principalAmount. 108 */ 109 public BigDecimal getPrincipalAmount() { 110 return principalAmount; 111 } 112 113 /** 114 * Sets the principalAmount attribute value. 115 * @param principalAmount The principalAmount to set. 116 */ 117 public void setPrincipalAmountt(BigDecimal principalAmount) { 118 this.principalAmount = principalAmount; 119 } 120 121 /** 122 * Gets the securityCost attribute. 123 * @return Returns the securityCost. 124 */ 125 public BigDecimal getSecurityCost() { 126 return securityCost; 127 } 128 129 /** 130 * Sets the securityCost attribute value. 131 * @param securityCost The securityCost to set. 132 */ 133 public void setSecurityCost(BigDecimal securityCost) { 134 this.securityCost = securityCost; 135 } 136 137 /** 138 * Gets the longTermGainLoss attribute. 139 * @return Returns the longTermGainLoss. 140 */ 141 public BigDecimal getLongTermGainLoss() { 142 return longTermGainLoss; 143 } 144 145 /** 146 * Sets the longTermGainLoss attribute. 147 * @return Returns the longTermGainLoss. 148 */ 149 public void setLongTermGainLoss(BigDecimal longTermGainLoss) { 150 this.longTermGainLoss = longTermGainLoss; 151 } 152 153 /** 154 * Gets the longTermGainLoss attribute. 155 * @return Returns the longTermGainLoss. 156 */ 157 public BigDecimal getShortTermGainLoss() { 158 return shortTermGainLoss; 159 } 160 161 /** 162 * Sets the shortTermGainLoss attribute. 163 * @return Returns the shortTermGainLoss. 164 */ 165 public void setShortTermGainLoss(BigDecimal shortTermGainLoss) { 166 this.shortTermGainLoss = shortTermGainLoss; 167 } 168 169 /** 170 * A map of the "keys" of this transient business object 171 * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper() 172 */ 173 @Override 174 protected LinkedHashMap toStringMapper() { 175 LinkedHashMap pks = new LinkedHashMap<String, Object>(); 176 pks.put("documentType",this.getDocumentType()); 177 pks.put("eDocNumber",this.getEDocNumber()); 178 pks.put("kEMID",this.getKEMID()); 179 pks.put("incomeAmount",this.getIncomeAmount()); 180 pks.put("principalAmount",this.getPrincipalAmount()); 181 pks.put("securityCost",this.getSecurityCost()); 182 pks.put("longTermGainLoss",this.getLongTermGainLoss()); 183 pks.put("shortTermGainLoss",this.getShortTermGainLoss()); 184 185 return pks; 186 } 187 }