View Javadoc
1   /*
2    * Copyright 2005-2006 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  package org.kuali.ole.fp.businessobject;
18  
19  import java.math.BigDecimal;
20  import java.sql.Date;
21  import java.util.LinkedHashMap;
22  
23  import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
24  
25  /**
26   * This class is used to represent a travel mileage rate business object.
27   */
28  public class TravelMileageRate extends PersistableBusinessObjectBase {
29      private Date disbursementVoucherMileageEffectiveDate;
30      private Integer mileageLimitAmount;
31      private BigDecimal mileageRate;
32  
33      /**
34       * Default no-arg constructor.
35       */
36      public TravelMileageRate() {
37  
38      }
39  
40      /**
41       * Gets the mileageLimitAmount attribute.
42       * 
43       * @return Returns the mileageLimitAmount
44       */
45      public Integer getMileageLimitAmount() {
46          return mileageLimitAmount;
47      }
48  
49  
50      /**
51       * Sets the mileageLimitAmount attribute.
52       * 
53       * @param mileageLimitAmount The disbVchrMileageLimitAmount to set.
54       */
55      public void setMileageLimitAmount(Integer mileageLimitAmount) {
56          this.mileageLimitAmount = mileageLimitAmount;
57      }
58  
59      /**
60       * Gets the mileageRate attribute.
61       * 
62       * @return Returns the mileageRate
63       */
64      public BigDecimal getMileageRate() {
65          return mileageRate;
66      }
67  
68  
69      /**
70       * Sets the mileageRate attribute.
71       * 
72       * @param mileageRate The mileageRate to set.
73       */
74      public void setMileageRate(BigDecimal mileageRate) {
75          this.mileageRate = mileageRate;
76      }
77  
78      /**
79       * @return Returns the disbursementVoucherMileageEffectiveDate.
80       */
81      public Date getDisbursementVoucherMileageEffectiveDate() {
82          return disbursementVoucherMileageEffectiveDate;
83      }
84  
85      /**
86       * @param disbursementVoucherMileageEffectiveDate The disbursementVoucherMileageEffectiveDate to set.
87       */
88      public void setDisbursementVoucherMileageEffectiveDate(Date disbursementVoucherMileageEffectiveDate) {
89          this.disbursementVoucherMileageEffectiveDate = disbursementVoucherMileageEffectiveDate;
90      }
91  
92      /**
93       * @see org.kuali.rice.krad.bo.BusinessObjectBase#toStringMapper()
94       */
95      protected LinkedHashMap toStringMapper_RICE20_REFACTORME() {
96          LinkedHashMap m = new LinkedHashMap();
97          if (this.disbursementVoucherMileageEffectiveDate != null) {
98              m.put("disbursementVoucherMileageEffectiveDate", this.disbursementVoucherMileageEffectiveDate.toString());
99          }
100         if (this.mileageLimitAmount != null) {
101             m.put("disbVchrMileageLimitAmount", this.mileageLimitAmount.toString());
102         }
103         return m;
104     }
105 
106 
107 }