001: /*
002: * Copyright 2005-2007 The Kuali Foundation.
003: *
004: * Licensed under the Educational Community License, Version 1.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/ecl1.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.module.financial.bo;
018:
019: import java.math.BigDecimal;
020: import java.sql.Date;
021: import java.util.LinkedHashMap;
022:
023: import org.kuali.core.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: * Sets the mileageLimitAmount attribute.
051: *
052: * @param mileageLimitAmount The disbVchrMileageLimitAmount to set.
053: */
054: public void setMileageLimitAmount(Integer mileageLimitAmount) {
055: this .mileageLimitAmount = mileageLimitAmount;
056: }
057:
058: /**
059: * Gets the mileageRate attribute.
060: *
061: * @return Returns the mileageRate
062: */
063: public BigDecimal getMileageRate() {
064: return mileageRate;
065: }
066:
067: /**
068: * Sets the mileageRate attribute.
069: *
070: * @param mileageRate The mileageRate to set.
071: */
072: public void setMileageRate(BigDecimal mileageRate) {
073: this .mileageRate = mileageRate;
074: }
075:
076: /**
077: * @return Returns the disbursementVoucherMileageEffectiveDate.
078: */
079: public Date getDisbursementVoucherMileageEffectiveDate() {
080: return disbursementVoucherMileageEffectiveDate;
081: }
082:
083: /**
084: * @param disbursementVoucherMileageEffectiveDate The disbursementVoucherMileageEffectiveDate to set.
085: */
086: public void setDisbursementVoucherMileageEffectiveDate(
087: Date disbursementVoucherMileageEffectiveDate) {
088: this .disbursementVoucherMileageEffectiveDate = disbursementVoucherMileageEffectiveDate;
089: }
090:
091: /**
092: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
093: */
094: protected LinkedHashMap toStringMapper() {
095: LinkedHashMap m = new LinkedHashMap();
096: if (this .disbursementVoucherMileageEffectiveDate != null) {
097: m.put("disbursementVoucherMileageEffectiveDate",
098: this .disbursementVoucherMileageEffectiveDate
099: .toString());
100: }
101: if (this .mileageLimitAmount != null) {
102: m.put("disbVchrMileageLimitAmount", this.mileageLimitAmount
103: .toString());
104: }
105: return m;
106: }
107:
108: }
|