View Javadoc
1   /**
2    * Copyright 2005-2014 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.edl.impl.bo;
17  
18  import org.kuali.rice.krad.data.jpa.converters.Boolean01Converter;
19  import org.kuali.rice.krad.data.jpa.PortableSequenceGenerator;
20  
21  import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
22  
23  import javax.persistence.Basic;
24  import javax.persistence.Column;
25  import javax.persistence.Convert;
26  import javax.persistence.Entity;
27  import javax.persistence.FetchType;
28  import javax.persistence.GeneratedValue;
29  import javax.persistence.Id;
30  import javax.persistence.Lob;
31  import javax.persistence.Table;
32  
33  /**
34   * EDocLite document definition
35   * Table: en_edoclt_def_t
36   * @author Kuali Rice Team (rice.collab@kuali.org)
37   */
38  @Entity
39  @Table(name="KREW_EDL_DEF_T")
40  public class EDocLiteDefinition extends PersistableBusinessObjectBase {
41  
42      private static final long serialVersionUID = 6230450806784021509L;
43      /**
44       * edoclt_def_id
45       */
46      @Id
47      @GeneratedValue(generator="KREW_EDL_S")
48      @PortableSequenceGenerator(name = "KREW_EDL_S")
49      @Column(name = "EDOCLT_DEF_ID", nullable = false)
50      private Long id;
51      /**
52       * edoclt_def_nm
53       */
54      @Column(name="NM", nullable = false)
55      private String name;
56      /**
57       * edoclt_def_xml
58       */
59      @Lob
60      @Basic(fetch=FetchType.LAZY)
61      @Column(name="XML", nullable = false)
62      private String xmlContent;
63      /**
64       * edoclt_def_actv_ind
65       */
66      @Convert(converter=Boolean01Converter.class)
67      @Column(name="ACTV_IND", nullable = false)
68      private Boolean activeInd;
69  
70      /**
71       * Returns the edoc lite definition id.
72       * @return the definition id
73       */
74      public Long getId() {
75          return id;
76      }
77  
78      /**
79       *
80       * @see #getId()
81       */
82      public void setId(Long id) {
83          this.id = id;
84      }
85  
86      /**
87       * Returns the name.
88       * @return the name
89       */
90      public String getName() {
91          return name;
92      }
93  
94      /**
95       *
96       * @see #getName()
97       */
98      public void setName(String name) {
99          this.name = name;
100     }
101 
102     /**
103      * Returns the xml content.
104      * @return the xml content
105      */
106     public String getXmlContent() {
107         return xmlContent;
108     }
109 
110     /**
111      *
112      * @see #getXmlContent()
113      */
114     public void setXmlContent(String xmlContent) {
115         this.xmlContent = xmlContent;
116     }
117 
118     /**
119      * Returns true if the record is active, false otherwise.
120      * @return TRUE if the record is active, FALSE otherwise
121      */
122     public Boolean getActiveInd() {
123         return activeInd;
124     }
125 
126     /**
127      *
128      * @see #getActiveInd()
129      */
130     public void setActiveInd(Boolean activeInd) {
131         this.activeInd = activeInd;
132     }
133 }