View Javadoc
1   /*
2    * Copyright 2006-2009 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   * Created on Feb 28, 2006
18   *
19   */
20  package org.kuali.ole.module.purap.businessobject;
21  
22  import org.kuali.rice.core.api.mo.common.active.MutableInactivatable;
23  import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
24  
25  import java.util.LinkedHashMap;
26  
27  public class ElectronicInvoiceItemMapping extends PersistableBusinessObjectBase implements MutableInactivatable {
28  
29      private Integer invoiceMapIdentifier;
30      private Integer vendorHeaderGeneratedIdentifier;
31      private Integer vendorDetailAssignedIdentifier;
32      private String itemTypeCode;
33      private String invoiceItemTypeCode;
34      private boolean active;
35  
36      private ItemType itemType;
37      private ItemType invoiceItemType;
38  
39      /**
40       *
41       */
42      public ElectronicInvoiceItemMapping() {
43          super();
44      }
45  
46      /**
47       * @return Returns the invoiceMapIdentifier.
48       */
49      public Integer getInvoiceMapIdentifier() {
50          return invoiceMapIdentifier;
51      }
52  
53      /**
54       * @param invoiceMapIdentifier The invoiceMapIdentifier to set.
55       */
56      public void setInvoiceMapIdentifier(Integer id) {
57          this.invoiceMapIdentifier = id;
58      }
59  
60      /**
61       * @return Returns the invoiceItemTypeCode.
62       */
63      public String getInvoiceItemTypeCode() {
64          return invoiceItemTypeCode;
65      }
66  
67      /**
68       * @param invoiceItemTypeCode The invoiceItemTypeCode to set.
69       */
70      public void setInvoiceItemTypeCode(String electronicInvoiceItemTypeCode) {
71          this.invoiceItemTypeCode = electronicInvoiceItemTypeCode;
72      }
73  
74      /**
75       * @return Returns the itemTypeCode.
76       */
77      public String getItemTypeCode() {
78          return itemTypeCode;
79      }
80  
81      /**
82       * @param itemTypeCode The itemTypeCode to set.
83       */
84      public void setItemTypeCode(String itemTypeCode) {
85          this.itemTypeCode = itemTypeCode;
86      }
87  
88      /**
89       * @return Returns the itemType.
90       */
91      public ItemType getItemType() {
92          return itemType;
93      }
94  
95      /**
96       * @param itemType The itemType to set.
97       */
98      public void setItemType(ItemType itemType) {
99          this.itemType = itemType;
100         this.itemTypeCode = itemType.getItemTypeCode();
101     }
102 
103     public ItemType getInvoiceItemType() {
104         return invoiceItemType;
105     }
106 
107     public void setInvoiceItemType(ItemType invoiceItemType) {
108         this.invoiceItemType = invoiceItemType;
109     }
110 
111     public boolean isActive() {
112         return active;
113     }
114 
115     public void setActive(boolean active) {
116         this.active = active;
117     }
118 
119     /**
120      * @return Returns the vendorDetailAssignedIdentifier.
121      */
122     public Integer getVendorDetailAssignedIdentifier() {
123         return vendorDetailAssignedIdentifier;
124     }
125 
126     /**
127      * @param vendorDetailAssignedIdentifier The vendorDetailAssignedIdentifier to set.
128      */
129     public void setVendorDetailAssignedIdentifier(Integer vendorDetailAssignedId) {
130         this.vendorDetailAssignedIdentifier = vendorDetailAssignedId;
131     }
132 
133     /**
134      * @return Returns the vendorHeaderGeneratedIdentifier.
135      */
136     public Integer getVendorHeaderGeneratedIdentifier() {
137         return vendorHeaderGeneratedIdentifier;
138     }
139 
140     /**
141      * @param vendorHeaderGeneratedIdentifier
142      *         The vendorHeaderGeneratedIdentifier to set.
143      */
144     public void setVendorHeaderGeneratedIdentifier(Integer vendorHeaderGeneratedId) {
145         this.vendorHeaderGeneratedIdentifier = vendorHeaderGeneratedId;
146     }
147 
148     /**
149      * @see org.kuali.rice.krad.bo.BusinessObjectBase#toStringMapper()
150      */
151     protected LinkedHashMap toStringMapper_RICE20_REFACTORME() {
152         LinkedHashMap m = new LinkedHashMap();
153         m.put("invoiceMapIdentifier", this.invoiceMapIdentifier);
154         return m;
155     }
156 }