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 package org.kuali.kfs.fp.businessobject; 018 019 import java.math.BigDecimal; 020 import java.sql.Date; 021 import java.util.LinkedHashMap; 022 023 import org.kuali.rice.kns.bo.PersistableBusinessObjectBase; 024 025 /** 026 * This class is used to represent a travel mileage rate business object. 027 */ 028 public class TravelMileageRate extends PersistableBusinessObjectBase { 029 private Date disbursementVoucherMileageEffectiveDate; 030 private Integer mileageLimitAmount; 031 private BigDecimal mileageRate; 032 033 /** 034 * Default no-arg constructor. 035 */ 036 public TravelMileageRate() { 037 038 } 039 040 /** 041 * Gets the mileageLimitAmount attribute. 042 * 043 * @return Returns the mileageLimitAmount 044 */ 045 public Integer getMileageLimitAmount() { 046 return mileageLimitAmount; 047 } 048 049 050 /** 051 * Sets the mileageLimitAmount attribute. 052 * 053 * @param mileageLimitAmount The disbVchrMileageLimitAmount to set. 054 */ 055 public void setMileageLimitAmount(Integer mileageLimitAmount) { 056 this.mileageLimitAmount = mileageLimitAmount; 057 } 058 059 /** 060 * Gets the mileageRate attribute. 061 * 062 * @return Returns the mileageRate 063 */ 064 public BigDecimal getMileageRate() { 065 return mileageRate; 066 } 067 068 069 /** 070 * Sets the mileageRate attribute. 071 * 072 * @param mileageRate The mileageRate to set. 073 */ 074 public void setMileageRate(BigDecimal mileageRate) { 075 this.mileageRate = mileageRate; 076 } 077 078 /** 079 * @return Returns the disbursementVoucherMileageEffectiveDate. 080 */ 081 public Date getDisbursementVoucherMileageEffectiveDate() { 082 return disbursementVoucherMileageEffectiveDate; 083 } 084 085 /** 086 * @param disbursementVoucherMileageEffectiveDate The disbursementVoucherMileageEffectiveDate to set. 087 */ 088 public void setDisbursementVoucherMileageEffectiveDate(Date disbursementVoucherMileageEffectiveDate) { 089 this.disbursementVoucherMileageEffectiveDate = disbursementVoucherMileageEffectiveDate; 090 } 091 092 /** 093 * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper() 094 */ 095 protected LinkedHashMap toStringMapper() { 096 LinkedHashMap m = new LinkedHashMap(); 097 if (this.disbursementVoucherMileageEffectiveDate != null) { 098 m.put("disbursementVoucherMileageEffectiveDate", this.disbursementVoucherMileageEffectiveDate.toString()); 099 } 100 if (this.mileageLimitAmount != null) { 101 m.put("disbVchrMileageLimitAmount", this.mileageLimitAmount.toString()); 102 } 103 return m; 104 } 105 106 107 }