View Javadoc
1   /*
2    * Copyright 2008 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  package org.kuali.ole.vnd.businessobject;
17  
18  import java.math.BigDecimal;
19  import java.util.Date;
20  
21  import org.kuali.rice.core.api.mo.common.active.MutableInactivatable;
22  import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
23  
24  /**
25   * CommodityCode Business Object
26   */
27  public class OleExchangeRate extends PersistableBusinessObjectBase implements MutableInactivatable  {
28  
29      private Long exchangeRateCode;
30      private BigDecimal exchangeRate;
31      private Long currencyTypeId;
32      private String exchangeRateSource;
33      private Date exchangeRateDate;
34      private boolean active;
35  
36      private OleCurrencyType currencyType;
37  
38  
39  
40      public Long getExchangeRateCode() {
41          return exchangeRateCode;
42      }
43  
44      public void setExchangeRateCode(Long exchangeRateCode) {
45          this.exchangeRateCode = exchangeRateCode;
46      }
47  
48      public BigDecimal getExchangeRate() {
49          return exchangeRate;
50      }
51  
52      public void setExchangeRate(BigDecimal exchangeRate) {
53          this.exchangeRate = exchangeRate;
54      }
55  
56      public Long getCurrencyTypeId() {
57          return currencyTypeId;
58      }
59  
60      public void setCurrencyTypeId(Long currencyTypeId) {
61          this.currencyTypeId = currencyTypeId;
62      }
63  
64      public String getExchangeRateSource() {
65          return exchangeRateSource;
66      }
67  
68      public void setExchangeRateSource(String exchangeRateSource) {
69          this.exchangeRateSource = exchangeRateSource;
70      }
71  
72      public Date getExchangeRateDate() {
73          return exchangeRateDate;
74      }
75  
76      public void setExchangeRateDate(Date exchangeRateDate) {
77          this.exchangeRateDate = exchangeRateDate;
78      }
79  
80      public OleCurrencyType getCurrencyType() {
81          return currencyType;
82      }
83  
84      public void setCurrencyType(OleCurrencyType currencyType) {
85          this.currencyType = currencyType;
86      }
87  
88      @Override
89      public boolean isActive() {
90          return active;
91      }
92  
93      @Override
94      public void setActive(boolean active) {
95          this.active = active;
96      }
97  
98  }