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.module.purap.businessobject;
18  
19  import org.kuali.ole.sys.context.SpringContext;
20  import org.kuali.rice.core.api.datetime.DateTimeService;
21  import org.kuali.rice.core.api.mo.common.active.MutableInactivatable;
22  import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
23  
24  import java.sql.Date;
25  import java.util.LinkedHashMap;
26  
27  /**
28   * Purchase Order Contract Language Business Object.
29   */
30  public class PurchaseOrderContractLanguage extends PersistableBusinessObjectBase implements MutableInactivatable {
31  
32      private Integer purchaseOrderContractLanguageIdentifier;
33      private String campusCode;
34      private String purchaseOrderContractLanguageDescription;
35      private Date contractLanguageCreateDate;
36      private boolean active;
37  
38      /**
39       * Default constructor.
40       */
41      public PurchaseOrderContractLanguage() {
42          this.setContractLanguageCreateDate(SpringContext.getBean(DateTimeService.class).getCurrentSqlDate());
43      }
44  
45      public Integer getPurchaseOrderContractLanguageIdentifier() {
46          return purchaseOrderContractLanguageIdentifier;
47      }
48  
49      public void setPurchaseOrderContractLanguageIdentifier(Integer purchaseOrderContractLanguageIdentifier) {
50          this.purchaseOrderContractLanguageIdentifier = purchaseOrderContractLanguageIdentifier;
51      }
52  
53      public String getCampusCode() {
54          return campusCode;
55      }
56  
57      public void setCampusCode(String campusCode) {
58          this.campusCode = campusCode;
59      }
60  
61      public String getPurchaseOrderContractLanguageDescription() {
62          return purchaseOrderContractLanguageDescription;
63      }
64  
65      public void setPurchaseOrderContractLanguageDescription(String purchaseOrderContractLanguageDescription) {
66          this.purchaseOrderContractLanguageDescription = purchaseOrderContractLanguageDescription;
67      }
68  
69      public Date getContractLanguageCreateDate() {
70          return contractLanguageCreateDate;
71      }
72  
73      public void setContractLanguageCreateDate(Date contractLanguageCreateDate) {
74          this.contractLanguageCreateDate = contractLanguageCreateDate;
75      }
76  
77      public boolean isActive() {
78          return active;
79      }
80  
81      public void setActive(boolean active) {
82          this.active = active;
83      }
84  
85      /**
86       * @see org.kuali.rice.krad.bo.BusinessObjectBase#toStringMapper()
87       */
88      protected LinkedHashMap toStringMapper_RICE20_REFACTORME() {
89          LinkedHashMap m = new LinkedHashMap();
90          if (this.purchaseOrderContractLanguageIdentifier != null) {
91              m.put("purchaseOrderContractLanguageIdentifier", this.purchaseOrderContractLanguageIdentifier.toString());
92          }
93          return m;
94      }
95  
96  }