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.util.LinkedHashMap;
019
020 import org.kuali.rice.kns.bo.TransientBusinessObjectBase;
021 import org.kuali.rice.kns.util.KualiDecimal;
022 import org.kuali.rice.kns.util.KualiInteger;
023
024 public class GLInterfaceBatchTotalsProcessedTableRowValues extends TransientBusinessObjectBase {
025 private String documentType;
026 private String chartCode;
027 private String objectCode;
028 private KualiDecimal debitAmount = KualiDecimal.ZERO;
029 private KualiDecimal creditAmount = KualiDecimal.ZERO;
030 private long numberOfEntries = 0;
031
032 public GLInterfaceBatchTotalsProcessedTableRowValues() {
033 documentType = " ";
034 chartCode = " ";
035 objectCode = " ";
036 }
037
038 /**
039 * Gets the documentType attribute.
040 * @return Returns the documentType.
041 */
042 public String getDocumentType() {
043 return documentType;
044 }
045
046 /**
047 * Sets the documentType attribute.
048 * @return Returns the documentType.
049 */
050 public void setDocumentType(String documentType) {
051 this.documentType = documentType;
052 }
053
054 /**
055 * Gets the chartCode attribute.
056 * @return Returns the chartCode.
057 */
058 public String getChartCode() {
059 return chartCode;
060 }
061
062 /**
063 * Sets the chartCode attribute.
064 * @return Returns the chartCode.
065 */
066 public void setChartCode(String chartCode) {
067 this.chartCode = chartCode;
068 }
069
070 /**
071 * Gets the objectCode attribute.
072 * @return Returns the objectCode.
073 */
074 public String getObjectCode() {
075 return objectCode;
076 }
077
078 /**
079 * Sets the objectCode attribute.
080 * @return Returns the objectCode.
081 */
082 public void setObjectCode(String objectCode) {
083 this.objectCode = objectCode;
084 }
085
086 /**
087 * Gets the debitAmount attribute.
088 * @return Returns the debitAmount.
089 */
090 public KualiDecimal getDebitAmount() {
091 return debitAmount;
092 }
093
094 /**
095 * Sets the debitAmount attribute value.
096 * @param DebitAmount The debitAmount to set.
097 */
098 public void setDebitAmount(KualiDecimal debitAmount) {
099 this.debitAmount = debitAmount;
100 }
101
102 /**
103 * Gets the creditAmount attribute.
104 * @return Returns the creditAmount.
105 */
106 public KualiDecimal getCreditAmount() {
107 return creditAmount;
108 }
109
110 /**
111 * Sets the creditAmount attribute value.
112 * @param creditAmount The creditAmount to set.
113 */
114 public void setCreditAmount(KualiDecimal creditAmount) {
115 this.creditAmount = creditAmount;
116 }
117
118 /**
119 * Gets the numberOfEntries attribute.
120 * @return Returns the numberOfEntries.
121 */
122 public long getNumberOfEntries() {
123 return numberOfEntries;
124 }
125
126 /**
127 * Sets the numberOfEntries attribute value.
128 * @param creditAmount The numberOfEntries to set.
129 */
130 public void setNumberOfEntries(long numberOfEntries) {
131 this.numberOfEntries = numberOfEntries;
132 }
133
134 /**
135 * A map of the "keys" of this transient business object
136 * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper()
137 */
138 @Override
139 protected LinkedHashMap toStringMapper() {
140 LinkedHashMap pks = new LinkedHashMap<String, Object>();
141 pks.put("documentType",this.getDocumentType());
142 pks.put("chartCode",this.getChartCode());
143 pks.put("objectCode",this.getObjectCode());
144 pks.put("debitAmount",this.getDebitAmount());
145 pks.put("creditAmount()",this.getCreditAmount());
146 pks.put("numberOfEntries", this.getNumberOfEntries());
147 return pks;
148 }
149 }