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 GlInterfaceBatchProcessKemLine extends TransientBusinessObjectBase {
024
025 private String documentNumber;
026 private int lineNumber;
027 private String lineTypeCode;
028 private String typeCode;
029 private String subTypeCode;
030 private String kemid;
031 private String incomePrincipalIndicatorCode;
032 private BigDecimal transactionArchiveIncomeAmount;
033 private BigDecimal transactionArchivePrincipalAmount;
034
035 //security fields...
036 private String securityId;
037 private BigDecimal holdingCost;
038 private BigDecimal longTermGainLoss;
039 private BigDecimal shortTermGainLoss;
040
041 //KEMIDGeneralLinkTable...
042 private String chartCode;
043 private String accountNumber;
044 private String objectCode;
045 private String nonCashOffsetObjectCode;
046
047 public GlInterfaceBatchProcessKemLine() {
048 }
049
050 /**
051 * gets documentNumber
052 * @return documentNumber
053 */
054 public String getDocumentNumber() {
055 return documentNumber;
056 }
057
058 /**
059 * sets documentNumber attribute
060 * @param documentNumber
061 */
062 public void setDocumentNumber(String documentNumber) {
063 this.documentNumber = documentNumber;
064 }
065
066 /**
067 * gets lineNumber
068 * @return lineNumber
069 */
070 public int getLineNumber() {
071 return lineNumber;
072 }
073
074 /**
075 * sets lineNumber attribute
076 * @param lineNumber
077 */
078 public void setLineNumber(int lineNumber) {
079 this.lineNumber = lineNumber;
080 }
081
082 /**
083 * gets lineTypeCode
084 * @return lineTypeCode
085 */
086 public String getLineTypeCode() {
087 return lineTypeCode;
088 }
089
090 /**
091 * sets lineTypeCode attribute
092 * @param lineTypeCode
093 */
094 public void setLineTypeCode(String lineTypeCode) {
095 this.lineTypeCode = lineTypeCode;
096 }
097
098 /**
099 * gets typeCode
100 * @return typeCode
101 */
102 public String getTypeCode() {
103 return typeCode;
104 }
105
106 /**
107 * sets typeCode attribute
108 * @param typeCode
109 */
110 public void setTypeCode(String typeCode) {
111 this.typeCode = typeCode;
112 }
113
114 /**
115 * gets subTypeCode
116 * @return subTypeCode
117 */
118 public String getSubTypeCode() {
119 return subTypeCode;
120 }
121
122 /**
123 * sets subTypeCode attribute
124 * @param subTypeCode
125 */
126 public void setSubTypeCode(String subTypeCode) {
127 this.subTypeCode = subTypeCode;
128 }
129
130 /**
131 * gets incomePrincipalIndicatorCode
132 * @return incomePrincipalIndicatorCode
133 */
134 public String getIncomePrincipalIndicatorCode() {
135 return incomePrincipalIndicatorCode;
136 }
137
138 /**
139 * sets incomePrincipalIndicatorCode attribute
140 * @param incomePrincipalIndicatorCode
141 */
142 public void setIncomePrincipalIndicatorCode(String incomePrincipalIndicatorCode) {
143 this.incomePrincipalIndicatorCode = incomePrincipalIndicatorCode;
144 }
145
146 /**
147 * gets transactionArchiveIncomeAmount
148 * @return transactionArchiveIncomeAmount
149 */
150 public BigDecimal getTransactionArchiveIncomeAmount() {
151 return transactionArchiveIncomeAmount;
152 }
153
154 /**
155 * sets transactionArchiveIncomeAmount attribute
156 * @param transactionArchiveIncomeAmount
157 */
158 public void setTransactionArchiveIncomeAmount(BigDecimal transactionArchiveIncomeAmount) {
159 this.transactionArchiveIncomeAmount = transactionArchiveIncomeAmount;
160 }
161
162 /**
163 * gets transactionArchivePrincipalAmount
164 * @return transactionArchivePrincipalAmount
165 */
166 public BigDecimal getTransactionArchivePrincipalAmount() {
167 return transactionArchivePrincipalAmount;
168 }
169
170 /**
171 * sets transactionArchiveIncomeAmount attribute
172 * @param transactionArchiveIncomeAmount
173 */
174 public void setTransactionArchivePrincipalAmount(BigDecimal transactionArchivePrincipalAmount) {
175 this.transactionArchivePrincipalAmount = transactionArchivePrincipalAmount;
176 }
177
178 /**
179 * gets securityId
180 * @return securityId
181 */
182 public String getSecurityId() {
183 return securityId;
184 }
185
186 /**
187 * sets securityId
188 * @param securityId
189 */
190 public void setSecurityId(String securityId) {
191 this.securityId = securityId;
192 }
193
194 /**
195 * gets holdingCost
196 * @return holdingCost
197 */
198 public BigDecimal getHoldingCost() {
199 return holdingCost;
200 }
201
202 /**
203 * sets holdingCost attribute
204 * @param holdingCost
205 */
206 public void setHoldingCost(BigDecimal holdingCost) {
207 this.holdingCost = holdingCost;
208 }
209
210 /**
211 * Gets the longTermGainLoss attribute.
212 * @return Returns the longTermGainLoss.
213 */
214 public BigDecimal getLongTermGainLoss() {
215 return longTermGainLoss;
216 }
217
218 /**
219 * Sets the longTermGainLoss attribute value.
220 * @param longTermGainLoss The longTermGainLoss to set.
221 */
222 public void setLongTermGainLoss(BigDecimal longTermGainLoss) {
223 this.longTermGainLoss = longTermGainLoss;
224 }
225
226 /**
227 * Gets the shortTermGainLoss attribute.
228 * @return Returns the shortTermGainLoss.
229 */
230 public BigDecimal getShortTermGainLoss() {
231 return shortTermGainLoss;
232 }
233
234 /**
235 * Sets the shortTermGainLoss attribute value.
236 * @param shortTermGainLoss The shortTermGainLoss to set.
237 */
238 public void setShortTermGainLoss(BigDecimal shortTermGainLoss) {
239 this.shortTermGainLoss = shortTermGainLoss;
240 }
241
242 /**
243 * gets chartCode
244 * @return chartCode
245 */
246 public String getChartCode() {
247 return chartCode;
248 }
249
250 /**
251 * sets chartCode attribute
252 * @param chartCode
253 */
254 public void setChartCode(String chartCode) {
255 this.chartCode = chartCode;
256 }
257
258 /**
259 * gets accountNumber
260 * @return accountNumber
261 */
262 public String getAccountNumber() {
263 return accountNumber;
264 }
265
266 /**
267 * sets documentNumber attribute
268 * @param documentNumber
269 */
270 public void setAccountNumber(String accountNumber) {
271 this.accountNumber = accountNumber;
272 }
273
274 /**
275 * gets objectCode
276 * @return objectCode
277 */
278 public String getObjectCode() {
279 return objectCode;
280 }
281
282 /**
283 * sets objectCode attribute
284 * @param objectCode
285 */
286 public void setObjectCode(String objectCode) {
287 this.objectCode = objectCode;
288 }
289
290 /**
291 * gets kemid attribute
292 * @return kemid;
293 */
294 public String getKemid() {
295 return kemid;
296 }
297
298 /**
299 * set kemid attribute
300 * @param kemid
301 */
302 public void setKemid(String kemid) {
303 this.kemid = kemid;
304 }
305
306 /**
307 * gets attribute nonCashOffsetObjectCode
308 * @return nonCashOffsetObjectCode
309 */
310 public String getNonCashOffsetObjectCode() {
311 return nonCashOffsetObjectCode;
312 }
313
314 /**
315 * sets attribute nonCashOffsetObjectCode
316 */
317 public void setNonCashOffsetObjectCode(String nonCashOffsetObjectCode) {
318 this.nonCashOffsetObjectCode = nonCashOffsetObjectCode;
319 }
320
321 /**
322 * A map of the "keys" of this transient business object
323 * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper()
324 */
325 @Override
326 protected LinkedHashMap toStringMapper() {
327 LinkedHashMap pks = new LinkedHashMap<String, Object>();
328
329 pks.put("documentNumber", this.getDocumentNumber());
330 pks.put("lineNumber", this.getLineNumber());
331 pks.put("lineTypeCode", this.getLineTypeCode());
332 pks.put("typeCode", this.getTypeCode());
333 pks.put("kemid", this.getKemid());
334 pks.put("subTypeCode", this.getSubTypeCode());
335 pks.put("incomePrincipalIndicatorCode", this.getIncomePrincipalIndicatorCode());
336 pks.put("transactionArchiveIncomeAmount", this.getTransactionArchiveIncomeAmount());
337 pks.put("transactionArchivePrincipalAmount", this.getTransactionArchivePrincipalAmount());
338 pks.put("securityId", this.getSecurityId());
339 pks.put("holdingCost", this.getHoldingCost());
340 pks.put(longTermGainLoss, this.getLongTermGainLoss());
341 pks.put("shortTermGainLoss", this.getShortTermGainLoss());
342 pks.put("chartCode", this.getChartCode());
343 pks.put("objectCode", this.getObjectCode());
344 pks.put("nonCashOffsetObjectCode", this.getNonCashOffsetObjectCode());
345
346 return pks;
347 }
348 }