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.module.purap.businessobject;
17  
18  import org.kuali.ole.integration.purap.CapitalAssetSystem;
19  import org.kuali.ole.integration.purap.ItemCapitalAsset;
20  import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
21  
22  import java.util.LinkedHashMap;
23  
24  public abstract class PurchasingItemCapitalAssetBase extends PersistableBusinessObjectBase implements ItemCapitalAsset {
25  
26      private Long capitalAssetNumber;
27      private Integer capitalAssetSystemIdentifier;
28      private Integer itemCapitalAssetIdentifier;
29      private CapitalAssetSystem capitalAssetSystem;
30  
31      /**
32       * Default constructor
33       */
34      public PurchasingItemCapitalAssetBase() {
35          super();
36      }
37  
38      /**
39       * Constructs a PurchasingItemCapitalAsset.
40       *
41       * @param capitalAssetNumber
42       */
43      public PurchasingItemCapitalAssetBase(Long capitalAssetNumber) {
44          this.capitalAssetNumber = capitalAssetNumber;
45      }
46  
47      public Long getCapitalAssetNumber() {
48          return capitalAssetNumber;
49      }
50  
51      public void setCapitalAssetNumber(Long capitalAssetNumber) {
52          this.capitalAssetNumber = capitalAssetNumber;
53      }
54  
55      public Integer getCapitalAssetSystemIdentifier() {
56          return capitalAssetSystemIdentifier;
57      }
58  
59      public void setCapitalAssetSystemIdentifier(Integer capitalAssetSystemIdentifier) {
60          this.capitalAssetSystemIdentifier = capitalAssetSystemIdentifier;
61      }
62  
63      public Integer getItemCapitalAssetIdentifier() {
64          return itemCapitalAssetIdentifier;
65      }
66  
67      public void setItemCapitalAssetIdentifier(Integer itemCapitalAssetIdentifier) {
68          this.itemCapitalAssetIdentifier = itemCapitalAssetIdentifier;
69      }
70  
71      public CapitalAssetSystem getCapitalAssetSystem() {
72          return capitalAssetSystem;
73      }
74  
75      public void setCapitalAssetSystem(CapitalAssetSystem capitalAssetSystem) {
76          this.capitalAssetSystem = capitalAssetSystem;
77      }
78  
79      /**
80       * @see org.kuali.rice.krad.bo.BusinessObjectBase#toStringMapper()
81       */
82      protected LinkedHashMap toStringMapper_RICE20_REFACTORME() {
83          LinkedHashMap m = new LinkedHashMap();
84          if (this.capitalAssetNumber != null) {
85              m.put("capitalAssetNumber", this.capitalAssetNumber.toString());
86          }
87          return m;
88      }
89  
90  }