View Javadoc

1   /**
2    * Copyright 2005-2015 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.rice.kim.impl.common.template;
17  
18  import javax.persistence.Column;
19  import org.hibernate.annotations.Type;
20  import org.kuali.rice.kim.api.common.template.TemplateContract;
21  import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
22  
23  public abstract class TemplateBo extends PersistableBusinessObjectBase implements TemplateContract {
24  
25      @Column(name="NMSPC_CD")
26      private String namespaceCode;
27  
28      @Column(name="NM")
29      private String name;
30  
31      @Column(name="DESC_TXT", length=400)
32      private String description;
33  
34      @Column(name="KIM_TYP_ID")
35      private String kimTypeId;
36  
37      @Column(name="ACTV_IND")
38      @Type(type="yes_no")
39      private boolean active;
40  
41      @Override
42      public String getNamespaceCode() {
43          return namespaceCode;
44      }
45  
46      public void setNamespaceCode(String namespaceCode) {
47          this.namespaceCode = namespaceCode;
48      }
49  
50      @Override
51      public String getName() {
52          return name;
53      }
54  
55      public void setName(String name) {
56          this.name = name;
57      }
58  
59      @Override
60      public String getDescription() {
61          return description;
62      }
63  
64      public void setDescription(String description) {
65          this.description = description;
66      }
67  
68      @Override
69      public String getKimTypeId() {
70          return kimTypeId;
71      }
72  
73      public void setKimTypeId(String kimTypeId) {
74          this.kimTypeId = kimTypeId;
75      }
76  
77      @Override
78      public boolean isActive() {
79          return active;
80      }
81  
82      public void setActive(boolean active) {
83          this.active = active;
84      }
85  }