Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
NoteType |
|
| 1.0;1 |
1 | /* | |
2 | * Copyright 2007-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 | ||
17 | package org.kuali.rice.kns.bo; | |
18 | ||
19 | import javax.persistence.Version; | |
20 | import javax.persistence.Column; | |
21 | import javax.persistence.Id; | |
22 | import javax.persistence.CascadeType; | |
23 | import javax.persistence.Table; | |
24 | import javax.persistence.Entity; | |
25 | ||
26 | import java.util.LinkedHashMap; | |
27 | ||
28 | ||
29 | /** | |
30 | * | |
31 | */ | |
32 | @Entity | |
33 | @Table(name="KRNS_NTE_TYP_T") | |
34 | public class NoteType extends PersistableBusinessObjectBase { | |
35 | ||
36 | @Id | |
37 | @Column(name="NTE_TYP_CD") | |
38 | private String noteTypeCode; | |
39 | @Column(name="TYP_DESC_TXT") | |
40 | private String noteTypeDescription; | |
41 | @Column(name="ACTV_IND") | |
42 | private boolean noteTypeActiveIndicator; | |
43 | ||
44 | /** | |
45 | * Default constructor. | |
46 | */ | |
47 | 0 | public NoteType() { |
48 | ||
49 | 0 | } |
50 | ||
51 | /** | |
52 | * Gets the noteTypeCode attribute. | |
53 | * | |
54 | * @return Returns the noteTypeCode | |
55 | * | |
56 | */ | |
57 | public String getNoteTypeCode() { | |
58 | 0 | return noteTypeCode; |
59 | } | |
60 | ||
61 | /** | |
62 | * Sets the noteTypeCode attribute. | |
63 | * | |
64 | * @param noteTypeCode The noteTypeCode to set. | |
65 | * | |
66 | */ | |
67 | public void setNoteTypeCode(String noteTypeCode) { | |
68 | 0 | this.noteTypeCode = noteTypeCode; |
69 | 0 | } |
70 | ||
71 | ||
72 | /** | |
73 | * Gets the noteTypeDescription attribute. | |
74 | * | |
75 | * @return Returns the noteTypeDescription | |
76 | * | |
77 | */ | |
78 | public String getNoteTypeDescription() { | |
79 | 0 | return noteTypeDescription; |
80 | } | |
81 | ||
82 | /** | |
83 | * Sets the noteTypeDescription attribute. | |
84 | * | |
85 | * @param noteTypeDescription The noteTypeDescription to set. | |
86 | * | |
87 | */ | |
88 | public void setNoteTypeDescription(String noteTypeDescription) { | |
89 | 0 | this.noteTypeDescription = noteTypeDescription; |
90 | 0 | } |
91 | ||
92 | ||
93 | /** | |
94 | * Gets the noteTypeActiveIndicator attribute. | |
95 | * | |
96 | * @return Returns the noteTypeActiveIndicator | |
97 | * | |
98 | */ | |
99 | public boolean isNoteTypeActiveIndicator() { | |
100 | 0 | return noteTypeActiveIndicator; |
101 | } | |
102 | ||
103 | ||
104 | /** | |
105 | * Sets the noteTypeActiveIndicator attribute. | |
106 | * | |
107 | * @param noteTypeActiveIndicator The noteTypeActiveIndicator to set. | |
108 | * | |
109 | */ | |
110 | public void setNoteTypeActiveIndicator(boolean noteTypeActiveIndicator) { | |
111 | 0 | this.noteTypeActiveIndicator = noteTypeActiveIndicator; |
112 | 0 | } |
113 | ||
114 | ||
115 | /** | |
116 | * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper() | |
117 | */ | |
118 | protected LinkedHashMap toStringMapper() { | |
119 | 0 | LinkedHashMap m = new LinkedHashMap(); |
120 | 0 | m.put("noteTypeCode", this.noteTypeCode); |
121 | 0 | return m; |
122 | } | |
123 | } | |
124 |