View Javadoc
1   /*
2    * Copyright 2007 The Kuali Foundation
3    * 
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    * http://www.opensource.org/licenses/ecl2.php
9    * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  /*
17   * Created on Aug 2, 2004
18   *
19   */
20  package org.kuali.ole.pdp.businessobject;
21  
22  import java.math.BigDecimal;
23  import java.util.Date;
24  import java.util.LinkedHashMap;
25  
26  import org.kuali.ole.pdp.PdpPropertyConstants;
27  import org.kuali.rice.core.api.util.type.KualiInteger;
28  import org.kuali.rice.krad.bo.TransientBusinessObjectBase;
29  
30  /**
31   * 
32   */
33  public class BatchSearch extends TransientBusinessObjectBase {
34      private static org.apache.log4j.Logger LOG = org.apache.log4j.Logger.getLogger(BatchSearch.class);
35  
36      private KualiInteger batchId;
37      private KualiInteger paymentCount;
38      private BigDecimal paymentTotalAmount;
39      private Date beginDate;
40      private Date endDate;
41      private String chartCode;
42      private String orgCode;
43      private String subUnitCode;
44  
45      /**
46       * @return Returns the batchId.
47       */
48      public KualiInteger getBatchId() {
49          return batchId;
50      }
51  
52      /**
53       * @return Returns the beginDate.
54       */
55      public Date getBeginDate() {
56          return beginDate;
57      }
58  
59      /**
60       * @return Returns the chartCode.
61       */
62      public String getChartCode() {
63          return chartCode;
64      }
65  
66      /**
67       * @return Returns the endDate.
68       */
69      public Date getEndDate() {
70          return endDate;
71      }
72  
73      /**
74       * @return Returns the orgCode.
75       */
76      public String getOrgCode() {
77          return orgCode;
78      }
79  
80      /**
81       * @return Returns the paymentCount.
82       */
83      public KualiInteger getPaymentCount() {
84          return paymentCount;
85      }
86  
87      /**
88       * @return Returns the paymentTotalAmount.
89       */
90      public BigDecimal getPaymentTotalAmount() {
91          return paymentTotalAmount;
92      }
93  
94      /**
95       * @return Returns the subUnitCode.
96       */
97      public String getSubUnitCode() {
98          return subUnitCode;
99      }
100 
101     /**
102      * @param batchId The batchId to set.
103      */
104     public void setBatchId(KualiInteger batchId) {
105         this.batchId = batchId;
106     }
107 
108     /**
109      * @param beginDate The beginDate to set.
110      */
111     public void setBeginDate(Date beginDate) {
112         this.beginDate = beginDate;
113     }
114 
115     /**
116      * @param chartCode The chartCode to set.
117      */
118     public void setChartCode(String chartCode) {
119         this.chartCode = chartCode;
120     }
121 
122     /**
123      * @param endDate The endDate to set.
124      */
125     public void setEndDate(Date endDate) {
126         this.endDate = endDate;
127     }
128 
129     /**
130      * @param orgCode The orgCode to set.
131      */
132     public void setOrgCode(String orgCode) {
133         this.orgCode = orgCode;
134     }
135 
136     /**
137      * @param paymentCount The paymentCount to set.
138      */
139     public void setPaymentCount(KualiInteger paymentCount) {
140         this.paymentCount = paymentCount;
141     }
142 
143     /**
144      * @param paymentTotalAmount The paymentTotalAmount to set.
145      */
146     public void setPaymentTotalAmount(BigDecimal paymentTotalAmount) {
147         this.paymentTotalAmount = paymentTotalAmount;
148     }
149 
150     /**
151      * @param subUnitCode The subUnitCode to set.
152      */
153     public void setSubUnitCode(String subUnitCode) {
154         this.subUnitCode = subUnitCode;
155     }
156 
157     
158     protected LinkedHashMap toStringMapper_RICE20_REFACTORME() {
159         LinkedHashMap m = new LinkedHashMap();
160         
161         m.put(PdpPropertyConstants.BATCH_ID, this.batchId);                  
162         m.put(PdpPropertyConstants.PAYMENT_COUNT, this.paymentCount);         
163         m.put(PdpPropertyConstants.PAYMENT_TOTAL_AMOUNT, this.paymentTotalAmount);
164         m.put(PdpPropertyConstants.BEGIN_DATE, this.beginDate);               
165         m.put(PdpPropertyConstants.END_DATE, this.endDate);                 
166         m.put(PdpPropertyConstants.CHART_CODE, this.chartCode);             
167         m.put(PdpPropertyConstants.ORG_CODE, this.orgCode);               
168         m.put(PdpPropertyConstants.SUB_UNIT_CODE, this.subUnitCode);    
169         
170         return m;
171     }
172 }