View Javadoc
1   /*
2    * Copyright 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.util.LinkedHashMap;
20  
21  import org.kuali.ole.sys.businessobject.FiscalYearBasedBusinessObject;
22  import org.kuali.ole.sys.businessobject.SystemOptions;
23  import org.kuali.rice.core.api.util.type.KualiDecimal;
24  import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
25  
26  /**
27   * This class is used to represent a Travel Per Diem business object.
28   */
29  public class TravelPerDiem extends PersistableBusinessObjectBase implements FiscalYearBasedBusinessObject {
30      protected Integer universityFiscalYear;
31      protected String perDiemCountryName;
32      protected KualiDecimal perDiemRate;
33      protected String perDiemCountryText;
34  
35      protected transient SystemOptions fiscalYear;
36  
37      /**
38       * Default no-arg constructor.
39       */
40      public TravelPerDiem() {
41  
42      }
43  
44      /**
45       * @return Returns the fiscalYear.
46       */
47      public Integer getUniversityFiscalYear() {
48          return universityFiscalYear;
49      }
50  
51      /**
52       * @param fiscalYear The fiscalYear to set.
53       */
54      public void setUniversityFiscalYear(Integer fiscalYear) {
55          this.universityFiscalYear = fiscalYear;
56      }
57  
58      /**
59       * @return Returns the perDiemCountryName.
60       */
61      public String getPerDiemCountryName() {
62          return perDiemCountryName;
63      }
64  
65      /**
66       * @param perDiemCountryName The perDiemCountryName to set.
67       */
68      public void setPerDiemCountryName(String perDiemCountryName) {
69          this.perDiemCountryName = perDiemCountryName;
70      }
71  
72      /**
73       * @return Returns the perDiemCountryText.
74       */
75      public String getPerDiemCountryText() {
76          return perDiemCountryText;
77      }
78  
79      /**
80       * @param perDiemCountryText The perDiemCountryText to set.
81       */
82      public void setPerDiemCountryText(String perDiemCountryText) {
83          this.perDiemCountryText = perDiemCountryText;
84      }
85  
86      /**
87       * @return Returns the perDiemRate.
88       */
89      public KualiDecimal getPerDiemRate() {
90          return perDiemRate;
91      }
92  
93      /**
94       * @param perDiemRate The perDiemRate to set.
95       */
96      public void setPerDiemRate(KualiDecimal perDiemRate) {
97          this.perDiemRate = perDiemRate;
98      }
99  
100     /**
101      * Gets the fiscalYear attribute.
102      * 
103      * @return Returns the fiscalYear.
104      */
105     public SystemOptions getFiscalYear() {
106         return fiscalYear;
107     }
108 
109     /**
110      * Sets the fiscalYear attribute value.
111      * 
112      * @param fiscalYear The fiscalYear to set.
113      */
114     public void setFiscalYear(SystemOptions fiscalYear) {
115         this.fiscalYear = fiscalYear;
116     }
117 
118     /**
119      * @see org.kuali.rice.krad.bo.BusinessObjectBase#toStringMapper()
120      */
121     @SuppressWarnings("rawtypes")
122     protected LinkedHashMap toStringMapper_RICE20_REFACTORME() {
123         LinkedHashMap m = new LinkedHashMap();
124         m.put("perDiemCountryName", this.perDiemCountryName);
125         return m;
126     }
127 }