Clover Coverage Report - KS Admin 1.2-M1-SNAPSHOT
Coverage timestamp: Wed Dec 31 1969 19:00:00 EST
../../../../../../img/srcFileCovDistChart0.png 0% of files have more coverage
87   494   86   1.04
4   353   0.99   84
84     1.02  
1    
 
  Clu       Line # 19 87 0% 86 175 0% 0.0
 
No Tests
 
1    package org.kuali.student.lum.lu.bo;
2   
3    import java.sql.Timestamp;
4    import java.util.List;
5   
6    import javax.persistence.CascadeType;
7    import javax.persistence.Column;
8    import javax.persistence.JoinColumn;
9    import javax.persistence.JoinTable;
10    import javax.persistence.ManyToOne;
11    import javax.persistence.OneToMany;
12    import javax.persistence.OneToOne;
13    import javax.persistence.Transient;
14   
15    import org.kuali.rice.kns.bo.InactivateableFromTo;
16    import org.kuali.student.core.bo.KsVersionBusinessObjectBase;
17    import org.kuali.student.core.bo.util.InactivatableFromToHelper;
18   
 
19    public class Clu extends KsVersionBusinessObjectBase implements InactivateableFromTo {
20   
21    private static final long serialVersionUID = -403153977773213333L;
22   
23    private String officialCluId;
24   
25    @OneToOne(cascade=CascadeType.ALL)
26    @JoinColumn(name = "OFFIC_CLU_ID")
27    private CluIdentifier officialIdentifier;
28   
29    @OneToMany(cascade=CascadeType.ALL)
30    @JoinTable(name = "KSLU_CLU_JN_CLU_IDENT", joinColumns = @JoinColumn(name = "CLU_ID"), inverseJoinColumns = @JoinColumn(name = "ALT_CLU_ID"))
31    private List<CluIdentifier> alternateIdentifiers;
32   
33    @Column(name = "STDY_SUBJ_AREA")
34    private String studySubjectArea;
35   
36    private String descriptionId;
37   
38    @ManyToOne(cascade=CascadeType.ALL)
39    @JoinColumn(name = "RT_DESCR_ID")
40    private LuRichText description;
41   
42    @OneToMany(cascade=CascadeType.ALL, mappedBy = "clu")
43    private List<CluCampusLocation> campusLocations;
44   
45    @OneToMany(cascade=CascadeType.ALL)
46    @JoinTable(name = "KSLU_CLU_JN_ACCRED", joinColumns = @JoinColumn(name = "CLU_ID"), inverseJoinColumns = @JoinColumn(name = "CLU_ACCRED_ID"))
47    private List<CluAccreditation> accreditations;
48   
49    private List<CluAdminOrg> adminOrgs;
50   
51    private String primaryInstructorId;
52   
53    @ManyToOne(cascade=CascadeType.ALL)
54    @JoinColumn(name="PRI_INSTR_ID")
55    private CluInstructor primaryInstructor;
56   
57    @OneToMany(cascade=CascadeType.ALL)
58    @JoinTable(name = "KSLU_CLU_JN_CLU_INSTR", joinColumns = @JoinColumn(name = "CLU_ID"), inverseJoinColumns = @JoinColumn(name = "CLU_INSTR_ID"))
59    private List<CluInstructor> instructors;
60   
61    @Column(name = "EXP_FIRST_ATP")
62    private String expectedFirstAtp;
63   
64    @Column(name = "LAST_ATP")
65    private String lastAtp;
66   
67    @Column(name = "LAST_ADMIT_ATP")
68    private String lastAdmitAtp;
69   
70    // from clu embedded Amount, intensity.unitType
71    private String intensityTypeId;
72   
73    // from clu embedded Amount, intensity.unitQuanitity
74    private Integer intensityQuantity;
75   
76    // from clu embedded TimeAmout, stdDuration.atpDurationTypeKey
77    private String atpDurationTypeId;
78   
79    // from clu embedded TimeAmout, stdDuration.timeQuantity
80    private Integer timeQuantity;
81   
82    @Column(name = "CAN_CREATE_LUI")
83    private boolean canCreateLui;
84   
85    @Column(name = "REF_URL")
86    private String referenceURL;
87   
88    @OneToMany(cascade = CascadeType.ALL, mappedBy="clu")
89    private List<LuCode> luCodes;
90   
91    @Column(name = "NEXT_REVIEW_PRD")
92    private String nextReviewPeriod;
93   
94    @Column(name = "IS_ENRL")
95    private boolean enrollable;
96   
97    @OneToMany(cascade=CascadeType.ALL, mappedBy="clu")
98    private List<CluAtpTypeKey> offeredAtpTypes;
99   
100    @Column(name = "HAS_EARLY_DROP_DEDLN")
101    private boolean hasEarlyDropDeadline;
102   
103    @Column(name = "DEF_ENRL_EST")
104    private int defaultEnrollmentEstimate;
105   
106    @Column(name = "DEF_MAX_ENRL")
107    private int defaultMaximumEnrollment;
108   
109    @Column(name = "IS_HAZR_DISBLD_STU")
110    private boolean hazardousForDisabledStudents;
111   
112    private String feeId;
113   
114    @OneToOne(cascade=CascadeType.ALL)
115    @JoinColumn(name = "FEE_ID")
116    private CluFee fee;
117   
118    private String cluAccountingId;
119   
120    @OneToOne(cascade=CascadeType.ALL)
121    @JoinColumn(name = "ACCT_ID")
122    private CluAccounting accounting;
123   
124    @OneToMany(cascade = CascadeType.ALL, mappedBy = "owner")
125    private List<CluAttribute> attributes;
126   
127    private String typeId;
128   
129    @ManyToOne
130    @JoinColumn(name = "LUTYPE_ID")
131    private LuType luType;
132   
133    @Column(name = "ST")
134    private String state;
135   
136    @Column(name = "EFF_DT")
137    protected Timestamp activeFromDate;
138   
139    @Column(name = "EXPIR_DT")
140    protected Timestamp activeToDate;
141   
142    @Transient
143    protected Timestamp activeAsOfDate;
144   
145    //-------- not in ks --------
146    private List<CluCluRelation> cluRelations;
147   
148   
149    //-------- getters/setters with behavior -----
 
150  0 toggle public boolean isActive() {
151  0 return InactivatableFromToHelper.isActive(this);
152    }
153   
 
154  0 toggle public void setActive(boolean active) {
155    // do nothing, this is to comply wiht InactivatableFromTo interface
156    }
157   
 
158  0 toggle public CluAccounting getAccounting() {
159    // getting errors if this is null
160  0 if(accounting == null) {
161  0 accounting = new CluAccounting();
162    }
163  0 return accounting;
164    }
165   
 
166  0 toggle public void setAccounting(CluAccounting accounting) {
167  0 this.accounting = accounting;
168    }
169   
170    //--------- standard getters/setters ----------
 
171  0 toggle public String getOfficialCluId() {
172  0 return officialCluId;
173    }
174   
 
175  0 toggle public void setOfficialCluId(String officialCluId) {
176  0 this.officialCluId = officialCluId;
177    }
178   
 
179  0 toggle public CluIdentifier getOfficialIdentifier() {
180  0 return officialIdentifier;
181    }
182   
 
183  0 toggle public void setOfficialIdentifier(CluIdentifier officialIdentifier) {
184  0 this.officialIdentifier = officialIdentifier;
185    }
186   
 
187  0 toggle public List<CluIdentifier> getAlternateIdentifiers() {
188  0 return alternateIdentifiers;
189    }
190   
 
191  0 toggle public void setAlternateIdentifiers(List<CluIdentifier> alternateIdentifiers) {
192  0 this.alternateIdentifiers = alternateIdentifiers;
193    }
194   
 
195  0 toggle public String getStudySubjectArea() {
196  0 return studySubjectArea;
197    }
198   
 
199  0 toggle public void setStudySubjectArea(String studySubjectArea) {
200  0 this.studySubjectArea = studySubjectArea;
201    }
202   
 
203  0 toggle public String getDescriptionId() {
204  0 return descriptionId;
205    }
206   
 
207  0 toggle public void setDescriptionId(String descriptionId) {
208  0 this.descriptionId = descriptionId;
209    }
210   
 
211  0 toggle public LuRichText getDescription() {
212  0 return description;
213    }
214   
 
215  0 toggle public void setDescription(LuRichText description) {
216  0 this.description = description;
217    }
218   
 
219  0 toggle public List<CluCampusLocation> getCampusLocations() {
220  0 return campusLocations;
221    }
222   
 
223  0 toggle public void setCampusLocations(List<CluCampusLocation> campusLocations) {
224  0 this.campusLocations = campusLocations;
225    }
226   
 
227  0 toggle public List<CluAccreditation> getAccreditations() {
228  0 return accreditations;
229    }
230   
 
231  0 toggle public void setAccreditations(List<CluAccreditation> accreditations) {
232  0 this.accreditations = accreditations;
233    }
234   
 
235  0 toggle public List<CluAdminOrg> getAdminOrgs() {
236  0 return adminOrgs;
237    }
238   
 
239  0 toggle public void setAdminOrgs(List<CluAdminOrg> adminOrgs) {
240  0 this.adminOrgs = adminOrgs;
241    }
242   
 
243  0 toggle public String getPrimaryInstructorId() {
244  0 return primaryInstructorId;
245    }
246   
 
247  0 toggle public void setPrimaryInstructorId(String primaryInstructorId) {
248  0 this.primaryInstructorId = primaryInstructorId;
249    }
250   
 
251  0 toggle public CluInstructor getPrimaryInstructor() {
252  0 return primaryInstructor;
253    }
254   
 
255  0 toggle public void setPrimaryInstructor(CluInstructor primaryInstructor) {
256  0 this.primaryInstructor = primaryInstructor;
257    }
258   
 
259  0 toggle public List<CluInstructor> getInstructors() {
260  0 return instructors;
261    }
262   
 
263  0 toggle public void setInstructors(List<CluInstructor> instructors) {
264  0 this.instructors = instructors;
265    }
266   
 
267  0 toggle public String getExpectedFirstAtp() {
268  0 return expectedFirstAtp;
269    }
270   
 
271  0 toggle public void setExpectedFirstAtp(String expectedFirstAtp) {
272  0 this.expectedFirstAtp = expectedFirstAtp;
273    }
274   
 
275  0 toggle public String getLastAtp() {
276  0 return lastAtp;
277    }
278   
 
279  0 toggle public void setLastAtp(String lastAtp) {
280  0 this.lastAtp = lastAtp;
281    }
282   
 
283  0 toggle public String getLastAdmitAtp() {
284  0 return lastAdmitAtp;
285    }
286   
 
287  0 toggle public void setLastAdmitAtp(String lastAdmitAtp) {
288  0 this.lastAdmitAtp = lastAdmitAtp;
289    }
290   
 
291  0 toggle public boolean isCanCreateLui() {
292  0 return canCreateLui;
293    }
294   
 
295  0 toggle public void setCanCreateLui(boolean canCreateLui) {
296  0 this.canCreateLui = canCreateLui;
297    }
298   
 
299  0 toggle public String getReferenceURL() {
300  0 return referenceURL;
301    }
302   
 
303  0 toggle public void setReferenceURL(String referenceURL) {
304  0 this.referenceURL = referenceURL;
305    }
306   
 
307  0 toggle public String getNextReviewPeriod() {
308  0 return nextReviewPeriod;
309    }
310   
 
311  0 toggle public void setNextReviewPeriod(String nextReviewPeriod) {
312  0 this.nextReviewPeriod = nextReviewPeriod;
313    }
314   
 
315  0 toggle public boolean isEnrollable() {
316  0 return enrollable;
317    }
318   
 
319  0 toggle public void setEnrollable(boolean enrollable) {
320  0 this.enrollable = enrollable;
321    }
322   
 
323  0 toggle public boolean isHasEarlyDropDeadline() {
324  0 return hasEarlyDropDeadline;
325    }
326   
 
327  0 toggle public void setHasEarlyDropDeadline(boolean hasEarlyDropDeadline) {
328  0 this.hasEarlyDropDeadline = hasEarlyDropDeadline;
329    }
330   
 
331  0 toggle public int getDefaultEnrollmentEstimate() {
332  0 return defaultEnrollmentEstimate;
333    }
334   
 
335  0 toggle public void setDefaultEnrollmentEstimate(int defaultEnrollmentEstimate) {
336  0 this.defaultEnrollmentEstimate = defaultEnrollmentEstimate;
337    }
338   
 
339  0 toggle public int getDefaultMaximumEnrollment() {
340  0 return defaultMaximumEnrollment;
341    }
342   
 
343  0 toggle public void setDefaultMaximumEnrollment(int defaultMaximumEnrollment) {
344  0 this.defaultMaximumEnrollment = defaultMaximumEnrollment;
345    }
346   
 
347  0 toggle public boolean isHazardousForDisabledStudents() {
348  0 return hazardousForDisabledStudents;
349    }
350   
 
351  0 toggle public void setHazardousForDisabledStudents(boolean hazardousForDisabledStudents) {
352  0 this.hazardousForDisabledStudents = hazardousForDisabledStudents;
353    }
354   
 
355  0 toggle public String getTypeId() {
356  0 return typeId;
357    }
358   
 
359  0 toggle public void setTypeId(String typeId) {
360  0 this.typeId = typeId;
361    }
362   
 
363  0 toggle public LuType getLuType() {
364  0 return luType;
365    }
366   
 
367  0 toggle public void setLuType(LuType luType) {
368  0 this.luType = luType;
369    }
370   
 
371  0 toggle public String getState() {
372  0 return state;
373    }
374   
 
375  0 toggle public void setState(String state) {
376  0 this.state = state;
377    }
378   
 
379  0 toggle public String getCluAccountingId() {
380  0 return cluAccountingId;
381    }
382   
 
383  0 toggle public void setCluAccountingId(String cluAccountingId) {
384  0 this.cluAccountingId = cluAccountingId;
385    }
386   
 
387  0 toggle public String getFeeId() {
388  0 return feeId;
389    }
390   
 
391  0 toggle public void setFeeId(String feeId) {
392  0 this.feeId = feeId;
393    }
394   
 
395  0 toggle public CluFee getFee() {
396  0 if(fee == null) {
397  0 fee = new CluFee();
398    }
399  0 return fee;
400    }
401   
 
402  0 toggle public void setFee(CluFee fee) {
403  0 this.fee = fee;
404    }
405   
 
406  0 toggle public String getIntensityTypeId() {
407  0 return intensityTypeId;
408    }
409   
 
410  0 toggle public void setIntensityTypeId(String intensityTypeId) {
411  0 this.intensityTypeId = intensityTypeId;
412    }
413   
 
414  0 toggle public Integer getIntensityQuantity() {
415  0 return intensityQuantity;
416    }
417   
 
418  0 toggle public void setIntensityQuantity(Integer intensityQuantity) {
419  0 this.intensityQuantity = intensityQuantity;
420    }
421   
 
422  0 toggle public String getAtpDurationTypeId() {
423  0 return atpDurationTypeId;
424    }
425   
 
426  0 toggle public void setAtpDurationTypeId(String atpDurationTypeId) {
427  0 this.atpDurationTypeId = atpDurationTypeId;
428    }
429   
 
430  0 toggle public Integer getTimeQuantity() {
431  0 return timeQuantity;
432    }
433   
 
434  0 toggle public void setTimeQuantity(Integer timeQuantity) {
435  0 this.timeQuantity = timeQuantity;
436    }
437   
 
438  0 toggle public List<LuCode> getLuCodes() {
439  0 return luCodes;
440    }
441   
 
442  0 toggle public void setLuCodes(List<LuCode> luCodes) {
443  0 this.luCodes = luCodes;
444    }
445   
 
446  0 toggle public List<CluAtpTypeKey> getOfferedAtpTypes() {
447  0 return offeredAtpTypes;
448    }
449   
 
450  0 toggle public void setOfferedAtpTypes(List<CluAtpTypeKey> offeredAtpTypes) {
451  0 this.offeredAtpTypes = offeredAtpTypes;
452    }
453   
 
454  0 toggle public List<CluCluRelation> getCluRelations() {
455  0 return cluRelations;
456    }
457   
 
458  0 toggle public void setCluRelations(List<CluCluRelation> cluRelations) {
459  0 this.cluRelations = cluRelations;
460    }
461   
 
462  0 toggle public Timestamp getActiveFromDate() {
463  0 return activeFromDate;
464    }
465   
 
466  0 toggle public void setActiveFromDate(Timestamp activeFromDate) {
467  0 this.activeFromDate = activeFromDate;
468    }
469   
 
470  0 toggle public Timestamp getActiveToDate() {
471  0 return activeToDate;
472    }
473   
 
474  0 toggle public void setActiveToDate(Timestamp activeToDate) {
475  0 this.activeToDate = activeToDate;
476    }
477   
 
478  0 toggle public Timestamp getActiveAsOfDate() {
479  0 return activeAsOfDate;
480    }
481   
 
482  0 toggle public void setActiveAsOfDate(Timestamp activeAsOfDate) {
483  0 this.activeAsOfDate = activeAsOfDate;
484    }
485   
 
486  0 toggle public List<CluAttribute> getAttributes() {
487  0 return attributes;
488    }
489   
 
490  0 toggle public void setAttributes(List<CluAttribute> attributes) {
491  0 this.attributes = attributes;
492    }
493   
494    }