View Javadoc

1   /**
2    * Copyright 2010 The Kuali Foundation Licensed under the
3    * Educational Community License, Version 2.0 (the "License"); you may
4    * not use this file except in compliance with the License. You may
5    * obtain a copy of the License at
6    *
7    * http://www.osedu.org/licenses/ECL-2.0
8    *
9    * Unless required by applicable law or agreed to in writing,
10   * software distributed under the License is distributed on an "AS IS"
11   * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
12   * or implied. See the License for the specific language governing
13   * permissions and limitations under the License.
14   */
15  
16  package org.kuali.student.r2.lum.lu.entity;
17   
18  import javax.persistence.AttributeOverride;
19  import javax.persistence.AttributeOverrides;
20  import javax.persistence.Column;
21  import javax.persistence.Embedded;
22  import javax.persistence.Entity;
23  import javax.persistence.Table;
24  
25  import org.kuali.student.r1.common.entity.BaseEntity;
26  import org.kuali.student.r1.common.entity.TimeAmount;
27  
28  @Entity
29  @Table(name = "KSLU_CLU_CR")
30  public class CluCredit extends BaseEntity{
31      
32      @Column(name = "REPEAT_CNT")
33      private String repeatCount;
34  
35      @Column(name = "REPEAT_UNIT")
36      private String repeatUnits;
37  
38      @Column(name = "MIN_TOT_UNIT")
39      private Integer minTotalUnits;
40  
41      @Column(name = "MAX_TOT_UNIT")
42      private Integer maxTotalUnits;
43  
44      @Column(name = "INSTR_UNIT")
45      private Integer instructorUnits;
46  
47      @Embedded
48      @AttributeOverrides({
49          @AttributeOverride(name="atpDurationTypeKey", column=@Column(name="REPEAT_TM_ATP")),
50          @AttributeOverride(name="timeQuantity", column=@Column(name="REPEAT_TM_TMQ"))}
51      )
52      private TimeAmount repeatTime;
53      
54      @Embedded
55      @AttributeOverrides({
56          @AttributeOverride(name="atpDurationTypeKey", column=@Column(name="MIN_TM_TO_COMP_ATP")),
57          @AttributeOverride(name="timeQuantity", column=@Column(name="MIN_TM_TO_COMP_TMQ"))}
58      )
59      private TimeAmount minTimeToComplete;
60  
61      @Embedded
62      @AttributeOverrides({
63          @AttributeOverride(name="atpDurationTypeKey", column=@Column(name="MAX_TM_TO_COMP_ATP")),
64          @AttributeOverride(name="timeQuantity", column=@Column(name="MAX_TM_TO_COMP_TMQ"))}
65      )
66      private TimeAmount maxTimeToComplete;
67  
68      @Embedded
69      @AttributeOverrides({
70          @AttributeOverride(name="atpDurationTypeKey", column=@Column(name="MAX_ALOW_INACV_ATP")),
71          @AttributeOverride(name="timeQuantity", column=@Column(name="MAX_ALOW_INACV_TMQ"))}
72      )
73      private TimeAmount maxAllowableInactivity;
74  
75      @Embedded
76      @AttributeOverrides({
77          @AttributeOverride(name="atpDurationTypeKey", column=@Column(name="MAX_TM_RSLT_RCGZ_ATP")),
78          @AttributeOverride(name="timeQuantity", column=@Column(name="MAX_TM_RSLT_RCGZ_TMQ"))}
79      )
80      private TimeAmount maxTimeResultsRecognized;
81  
82      public String getRepeatCount() {
83          return repeatCount;
84      }
85  
86      public void setRepeatCount(String repeatCount) {
87          this.repeatCount = repeatCount;
88      }
89  
90      public TimeAmount getRepeatTime() {
91          return repeatTime;
92      }
93  
94      public void setRepeatTime(TimeAmount repeatTime) {
95          this.repeatTime = repeatTime;
96      }
97  
98      public String getRepeatUnits() {
99          return repeatUnits;
100     }
101 
102     public void setRepeatUnits(String repeatUnits) {
103         this.repeatUnits = repeatUnits;
104     }
105 
106     public Integer getMinTotalUnits() {
107         return minTotalUnits;
108     }
109 
110     public void setMinTotalUnits(Integer minTotalUnits) {
111         this.minTotalUnits = minTotalUnits;
112     }
113 
114     public Integer getMaxTotalUnits() {
115         return maxTotalUnits;
116     }
117 
118     public void setMaxTotalUnits(Integer maxTotalUnits) {
119         this.maxTotalUnits = maxTotalUnits;
120     }
121 
122     public Integer getInstructorUnits() {
123         return instructorUnits;
124     }
125 
126     public void setInstructorUnits(Integer instructorUnits) {
127         this.instructorUnits = instructorUnits;
128     }
129 
130     public TimeAmount getMinTimeToComplete() {
131         return minTimeToComplete;
132     }
133 
134     public void setMinTimeToComplete(TimeAmount minTimeToComplete) {
135         this.minTimeToComplete = minTimeToComplete;
136     }
137 
138     public TimeAmount getMaxTimeToComplete() {
139         return maxTimeToComplete;
140     }
141 
142     public void setMaxTimeToComplete(TimeAmount maxTimeToComplete) {
143         this.maxTimeToComplete = maxTimeToComplete;
144     }
145 
146     public TimeAmount getMaxAllowableInactivity() {
147         return maxAllowableInactivity;
148     }
149 
150     public void setMaxAllowableInactivity(TimeAmount maxAllowableInactivity) {
151         this.maxAllowableInactivity = maxAllowableInactivity;
152     }
153 
154     public TimeAmount getMaxTimeResultsRecognized() {
155         return maxTimeResultsRecognized;
156     }
157 
158     public void setMaxTimeResultsRecognized(TimeAmount maxTimeResultsRecognized) {
159         this.maxTimeResultsRecognized = maxTimeResultsRecognized;
160     }
161     
162 }