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 /*
017 * Created on Aug 2, 2004
018 *
019 */
020 package org.kuali.kfs.pdp.businessobject;
021
022 import java.math.BigDecimal;
023 import java.util.Date;
024 import java.util.LinkedHashMap;
025
026 import org.kuali.kfs.pdp.PdpPropertyConstants;
027 import org.kuali.kfs.sys.KFSPropertyConstants;
028 import org.kuali.rice.kns.bo.TransientBusinessObjectBase;
029 import org.kuali.rice.kns.util.KualiInteger;
030
031 /**
032 *
033 */
034 public class BatchSearch extends TransientBusinessObjectBase {
035 private static org.apache.log4j.Logger LOG = org.apache.log4j.Logger.getLogger(BatchSearch.class);
036
037 private KualiInteger batchId;
038 private KualiInteger paymentCount;
039 private BigDecimal paymentTotalAmount;
040 private Date beginDate;
041 private Date endDate;
042 private String chartCode;
043 private String orgCode;
044 private String subUnitCode;
045
046 /**
047 * @return Returns the batchId.
048 */
049 public KualiInteger getBatchId() {
050 return batchId;
051 }
052
053 /**
054 * @return Returns the beginDate.
055 */
056 public Date getBeginDate() {
057 return beginDate;
058 }
059
060 /**
061 * @return Returns the chartCode.
062 */
063 public String getChartCode() {
064 return chartCode;
065 }
066
067 /**
068 * @return Returns the endDate.
069 */
070 public Date getEndDate() {
071 return endDate;
072 }
073
074 /**
075 * @return Returns the orgCode.
076 */
077 public String getOrgCode() {
078 return orgCode;
079 }
080
081 /**
082 * @return Returns the paymentCount.
083 */
084 public KualiInteger getPaymentCount() {
085 return paymentCount;
086 }
087
088 /**
089 * @return Returns the paymentTotalAmount.
090 */
091 public BigDecimal getPaymentTotalAmount() {
092 return paymentTotalAmount;
093 }
094
095 /**
096 * @return Returns the subUnitCode.
097 */
098 public String getSubUnitCode() {
099 return subUnitCode;
100 }
101
102 /**
103 * @param batchId The batchId to set.
104 */
105 public void setBatchId(KualiInteger batchId) {
106 this.batchId = batchId;
107 }
108
109 /**
110 * @param beginDate The beginDate to set.
111 */
112 public void setBeginDate(Date beginDate) {
113 this.beginDate = beginDate;
114 }
115
116 /**
117 * @param chartCode The chartCode to set.
118 */
119 public void setChartCode(String chartCode) {
120 this.chartCode = chartCode;
121 }
122
123 /**
124 * @param endDate The endDate to set.
125 */
126 public void setEndDate(Date endDate) {
127 this.endDate = endDate;
128 }
129
130 /**
131 * @param orgCode The orgCode to set.
132 */
133 public void setOrgCode(String orgCode) {
134 this.orgCode = orgCode;
135 }
136
137 /**
138 * @param paymentCount The paymentCount to set.
139 */
140 public void setPaymentCount(KualiInteger paymentCount) {
141 this.paymentCount = paymentCount;
142 }
143
144 /**
145 * @param paymentTotalAmount The paymentTotalAmount to set.
146 */
147 public void setPaymentTotalAmount(BigDecimal paymentTotalAmount) {
148 this.paymentTotalAmount = paymentTotalAmount;
149 }
150
151 /**
152 * @param subUnitCode The subUnitCode to set.
153 */
154 public void setSubUnitCode(String subUnitCode) {
155 this.subUnitCode = subUnitCode;
156 }
157
158 @Override
159 protected LinkedHashMap toStringMapper() {
160 LinkedHashMap m = new LinkedHashMap();
161
162 m.put(PdpPropertyConstants.BATCH_ID, this.batchId);
163 m.put(PdpPropertyConstants.PAYMENT_COUNT, this.paymentCount);
164 m.put(PdpPropertyConstants.PAYMENT_TOTAL_AMOUNT, this.paymentTotalAmount);
165 m.put(PdpPropertyConstants.BEGIN_DATE, this.beginDate);
166 m.put(PdpPropertyConstants.END_DATE, this.endDate);
167 m.put(PdpPropertyConstants.CHART_CODE, this.chartCode);
168 m.put(PdpPropertyConstants.ORG_CODE, this.orgCode);
169 m.put(PdpPropertyConstants.SUB_UNIT_CODE, this.subUnitCode);
170
171 return m;
172 }
173 }