|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
CluSet | Line # 48 | 26 | 0% | 26 | 2 | 96.2% |
0.96153843
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
(78) | |||
Result | |||
0.96153843
|
org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testUpdateDynamicCluSet
![]() |
1 PASS | |
0.96153843
|
org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testUpdateCluSet_AddClu
![]() |
1 PASS | |
0.96153843
|
org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testUpdateCluSet_ClearClus
![]() |
1 PASS | |
0.96153843
|
org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testUpdateCluSet_ClearCluSets
![]() |
1 PASS | |
0.96153843
|
org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testCluSetCrud
![]() |
1 PASS | |
0.96153843
|
org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testUpdateCluSet_removeCluSets
![]() |
1 PASS | |
0.96153843
|
org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testUpdateCluSet_AddCluSets
![]() |
1 PASS | |
0.96153843
|
org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testUpdateCluSet_VersionMismatch
![]() |
1 PASS | |
0.96153843
|
org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testUpdateCluSet_RemoveClu
![]() |
1 PASS | |
0.9230769
|
org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testAddCluSetToCluSet_InvalidCluSetId
![]() |
1 PASS | |
0.9230769
|
org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testGetCluSetTreeView_dynamicCluSet
![]() |
1 PASS | |
0.9230769
|
org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testGetDynamicCluSet
![]() |
1 PASS | |
0.9230769
|
org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testAddCluSetsToCluSet_DuplicateCluSetId
![]() |
1 PASS | |
0.9230769
|
org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testAddCluSetToCluSet_DuplicateCluSetId
![]() |
1 PASS | |
0.9230769
|
org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testAddCluSetToCluSet
![]() |
1 PASS | |
0.9230769
|
org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testAddCluSetsToCluSet_InvalidCluSetId
![]() |
1 PASS | |
0.9230769
|
org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testRemoveCluSetFromCluSet
![]() |
1 PASS | |
0.9230769
|
org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testRemoveCluFromCluSet
![]() |
1 PASS | |
0.9230769
|
org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testAddCluSetsToCluSet_CircularRelationshipException
![]() |
1 PASS | |
0.9230769
|
org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testAddClusToCluSet
![]() |
1 PASS | |
0.9230769
|
org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testAddCluSetsToCluSet
![]() |
1 PASS | |
0.9230769
|
org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testDeleteCluSet
![]() |
1 PASS | |
0.9230769
|
org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testAddClusToCluSet_DuplicateCluId
![]() |
1 PASS | |
0.9230769
|
org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testCreateDynamicCluSet_Simple
![]() |
1 PASS | |
0.9230769
|
org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testAddCluSetsToCluSet_NestedCircularRelationshipException
![]() |
1 PASS | |
0.9230769
|
org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testAddCluSetToCluSet_CircularRelationshipException
![]() |
1 PASS | |
0.9230769
|
org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testAddCluToCluSet
![]() |
1 PASS | |
0.9230769
|
org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testCreateDynamicCluSet
![]() |
1 PASS | |
0.9230769
|
org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testAddCluToCluSet_DuplicateCluId
![]() |
1 PASS | |
0.9230769
|
org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testAddCluSetToCluSet_NestedCircularRelationshipException
![]() |
1 PASS | |
0.9230769
|
org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testGetDynamicCluSet_Simple
![]() |
1 PASS | |
0.9230769
|
org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testAddClusToCluSet_InvalidCluId
![]() |
1 PASS | |
0.5
|
org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testCluSet
![]() |
1 PASS | |
0.5
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForCourse.testGetNaturalLanguageForReqComponent_1ofN
![]() |
1 PASS | |
0.5
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForProgram.testTranslateReqComponent_2CourseCompletedFrom1Program
![]() |
1 PASS | |
0.5
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForCourse.testGetNaturalLanguageForReqComponent_allN_CluSetOfClusets
![]() |
1 PASS | |
0.5
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForCourse.testGetNaturalLanguageForReqComponentType_kuali_reqComponent_type_course_program_notadmitted_org_duration_ProgramAsCluSet
![]() |
1 PASS | |
0.5
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForCourse.testGetNaturalLanguageForReqComponent_2ofN
![]() |
1 PASS | |
0.5
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForCourse.testGetNaturalLanguageForReqComponent_credits_max1
![]() |
1 PASS | |
0.5
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForProgram.testTranslateReqComponent_NotCompletedAnyOfProgram
![]() |
1 PASS | |
0.5
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForProgram.testTranslateReqComponent_Completed1ofProgram
![]() |
1 PASS | |
0.5
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForCourse.testGetNaturalLanguageForReqComponent_grade_max_GradeType_Letter
![]() |
1 PASS | |
0.5
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForCourse.testGetNaturalLanguageForReqComponentType_kuali_reqComponent_type_course_program_notadmitted_ProgramAsCluSet
![]() |
1 PASS | |
0.5
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForProgram.testTranslateReqComponent_CompletedSingleProgram
![]() |
1 PASS | |
0.5
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForCourse.testGetNaturalLanguageForReqComponent_none1
![]() |
1 PASS | |
0.5
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForCourse.testGetNaturalLanguageForReqComponent_credits_2ofN
![]() |
1 PASS | |
0.5
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForCourse.testGetNaturalLanguageForReqComponent_MinTestScoreOnTest
![]() |
1 PASS | |
0.5
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForCourse.testGetNaturalLanguageForReqComponent_grade_min_GradeType_Percentage
![]() |
1 PASS | |
0.5
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForCourse.testGetNaturalLanguageForReqComponent_grade_min_GradeType_Satisfactory
![]() |
1 PASS | |
0.5
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForCourse.testGetNaturalLanguageForReqComponent_noneN
![]() |
1 PASS | |
0.5
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForCourse.testGetNaturalLanguageForReqComponent_MaxTestScoreOnTest
![]() |
1 PASS | |
0.5
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForCourse.testGetNaturalLanguageForReqComponentType_kuali_reqComponent_type_course_program_admitted_ProgramAsCluSet
![]() |
1 PASS | |
0.5
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForCourse.testGetNaturalLanguageForReqComponent_credits_max2
![]() |
1 PASS | |
0.5
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForCourse.testGetNaturalLanguageForReqComponent_allN
![]() |
1 PASS | |
0.5
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForCourse.testGetNaturalLanguageForReqComponent_grade_max_GradeType_CompletedNotation
![]() |
1 PASS | |
0.5
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForProgram.testTranslateReqComponent_1CourseCompletedFromPrograms
![]() |
1 PASS | |
0.5
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForCourse.testGetNaturalLanguageForReqComponent_grade_min_GradeType_PassFail
![]() |
1 PASS | |
0.5
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForCourse.testGetNaturalLanguageForReqComponent_credits_none
![]() |
1 PASS | |
0.5
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForCourse.testGetNaturalLanguageForReqComponent_enroll_2ofN
![]() |
1 PASS | |
0.5
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForProgram.testGetNaturalLanguageForReqComponentType_kuali_reqComponent_type_course_courseset_completed_max
![]() |
1 PASS | |
0.5
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForCourse.testGetNaturalLanguageForReqComponent_1of1
![]() |
1 PASS | |
0.5
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForProgram.testTranslateReqComponent_Completed2ofProgram
![]() |
1 PASS | |
0.5
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForCourse.testGetNaturalLanguageForReqComponent_gradecheck
![]() |
1 PASS | |
0.5
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForCourse.testGetNaturalLanguageForReqComponent_enroll_1ofN
![]() |
1 PASS | |
0.5
|
org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testGetCluSetTreeView
![]() |
1 PASS | |
0.5
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForCourse.testGetNaturalLanguageForReqComponent_MinCoursesMinGradeTest_GradeType_CompletedNotation
![]() |
1 PASS | |
0.5
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForProgram.testTranslateStatementTree
![]() |
1 PASS | |
0.5
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForCourse.testGetNaturalLanguageForReqComponent_DefaultEnglish
![]() |
1 PASS | |
0.5
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForCourse.testGetNaturalLanguageForReqComponent_grade_min_GradeType_Letter
![]() |
1 PASS | |
0.5
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForProgram.testTranslateReqComponent_CompletedAllProgram
![]() |
1 PASS | |
0.5
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForCourse.testGetNaturalLanguageForReqComponentType_kuali_reqComponent_type_course_program_admitted_org_duration_ProgramAsCluSet
![]() |
1 PASS | |
0.5
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForCourse.testGetNaturalLanguageForReqComponent_MinCoursesMinGradeTest_GradeType_Letter
![]() |
1 PASS | |
0.5
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForProgram.testTranslateReqComponent_NotCompletedProgram
![]() |
1 PASS | |
0.5
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForProgram.testTranslateReqComponent_2CourseCompletedFromPrograms
![]() |
1 PASS | |
0.5
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForCourse.testGetNaturalLanguageForReqComponent_all1
![]() |
1 PASS | |
0.5
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForCourse.testGetNaturalLanguageForReqComponent_credits_1ofN
![]() |
1 PASS | |
0.5
|
org.kuali.student.lum.statement.service.impl.TestStatementServiceImplForCourse.testGetNaturalLanguageForReqComponent_grade_min_GradeType_CompletedNotation
![]() |
1 PASS | |
0.07692308
|
org.kuali.student.lum.lu.dao.impl.TestLuDaoImpl.testCreateClu
![]() |
1 PASS | |
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.lum.lu.entity; | |
17 | ||
18 | import java.util.ArrayList; | |
19 | import java.util.Date; | |
20 | import java.util.List; | |
21 | ||
22 | import javax.persistence.CascadeType; | |
23 | import javax.persistence.Column; | |
24 | import javax.persistence.Entity; | |
25 | import javax.persistence.JoinColumn; | |
26 | import javax.persistence.JoinTable; | |
27 | import javax.persistence.ManyToMany; | |
28 | import javax.persistence.ManyToOne; | |
29 | import javax.persistence.NamedQueries; | |
30 | import javax.persistence.NamedQuery; | |
31 | import javax.persistence.OneToMany; | |
32 | import javax.persistence.OneToOne; | |
33 | import javax.persistence.Table; | |
34 | import javax.persistence.Temporal; | |
35 | import javax.persistence.TemporalType; | |
36 | ||
37 | import org.kuali.student.common.entity.AttributeOwner; | |
38 | import org.kuali.student.common.entity.MetaEntity; | |
39 | ||
40 | @Entity | |
41 | @Table(name = "KSLU_CLU_SET") | |
42 | @NamedQueries( { | |
43 | @NamedQuery(name = "CluSet.getCluSetInfoByIdList", query = "SELECT c FROM CluSet c WHERE c.id IN (:cluSetIdList)"), | |
44 | @NamedQuery(name = "CluSet.isCluInCluSet", query = "SELECT COUNT(cluSet) FROM CluSet cluSet JOIN cluSet.cluVerIndIds cluVerIndIds WHERE cluSet.id = :cluSetId AND cluVerIndIds.cluVersionIndId = :cluId "), | |
45 | @NamedQuery(name = "CluSet.findCluSetsByCluVersionIndIds", query = "SELECT j.cluSet FROM CluSetJoinVersionIndClu j WHERE j.cluVersionIndId IN (:cluVersionIndIds)"), | |
46 | @NamedQuery(name = "CluSet.findAllDynamicCluSets", query = "SELECT cluSet FROM CluSet cluSet WHERE cluSet.membershipQuery IS NULL") | |
47 | }) | |
48 | public class CluSet extends MetaEntity implements AttributeOwner<CluSetAttribute> { | |
49 | ||
50 | @Column(name = "NAME") | |
51 | private String name; | |
52 | ||
53 | @ManyToOne(cascade=CascadeType.ALL) | |
54 | @JoinColumn(name = "RT_DESCR_ID") | |
55 | private LuRichText descr; | |
56 | ||
57 | @Temporal(TemporalType.TIMESTAMP) | |
58 | @Column(name = "EFF_DT") | |
59 | private Date effectiveDate; | |
60 | ||
61 | @Temporal(TemporalType.TIMESTAMP) | |
62 | @Column(name = "EXPIR_DT") | |
63 | private Date expirationDate; | |
64 | ||
65 | @ManyToMany | |
66 | @JoinTable(name = "KSLU_CLU_SET_JN_CLU_SET", joinColumns = @JoinColumn(name = "CLU_SET_PARENT_ID"), inverseJoinColumns = @JoinColumn(name = "CLU_SET_CHILD_ID")) | |
67 | private List<CluSet> cluSets = new ArrayList<CluSet>(); | |
68 | ||
69 | // @ManyToMany | |
70 | // @JoinTable(name = "KSLU_CLU_SET_JN_CLU", joinColumns = @JoinColumn(name = "CLU_SET_ID"), inverseJoinColumns = @JoinColumn(name = "CLU_ID")) | |
71 | // private List<Clu> clus = new ArrayList<Clu>(); | |
72 | ||
73 | @OneToMany(mappedBy="cluSet",cascade=CascadeType.ALL) | |
74 | private List<CluSetJoinVersionIndClu> cluVerIndIds = new ArrayList<CluSetJoinVersionIndClu>(); | |
75 | ||
76 | @OneToMany(cascade = CascadeType.ALL, mappedBy = "owner") | |
77 | private List<CluSetAttribute> attributes = new ArrayList<CluSetAttribute>(); | |
78 | ||
79 | @Column(name="TYPE") | |
80 | private String type; | |
81 | ||
82 | @Column(name = "ST") | |
83 | private String state; | |
84 | ||
85 | @Column(name = "ADMIN_ORG_ID") | |
86 | private String adminOrg; | |
87 | ||
88 | @OneToOne(cascade=CascadeType.ALL) | |
89 | @JoinColumn(name="MEM_QUERY_ID") | |
90 | private MembershipQuery membershipQuery; | |
91 | ||
92 | @Column(name = "REUSABLE") | |
93 | private Boolean isReusable; | |
94 | ||
95 | @Column(name = "REFERENCEABLE") | |
96 | private Boolean isReferenceable; | |
97 | ||
98 | // public List<Clu> getClus() { | |
99 | // return clus; | |
100 | // } | |
101 | // | |
102 | // public void setClus(List<Clu> clus) { | |
103 | // this.clus = clus; | |
104 | // } | |
105 | ||
106 | 174 |
![]() |
107 | 174 | return name; |
108 | } | |
109 | ||
110 | 45 |
![]() |
111 | 45 | this.name = name; |
112 | } | |
113 | ||
114 | 174 |
![]() |
115 | 174 | return descr; |
116 | } | |
117 | ||
118 | 45 |
![]() |
119 | 45 | this.descr = descr; |
120 | } | |
121 | ||
122 | 174 |
![]() |
123 | 174 | return effectiveDate; |
124 | } | |
125 | ||
126 | 45 |
![]() |
127 | 45 | this.effectiveDate = effectiveDate; |
128 | } | |
129 | ||
130 | 174 |
![]() |
131 | 174 | return expirationDate; |
132 | } | |
133 | ||
134 | 45 |
![]() |
135 | 45 | this.expirationDate = expirationDate; |
136 | } | |
137 | ||
138 | 792 |
![]() |
139 | 792 | return cluSets; |
140 | } | |
141 | ||
142 | 12 |
![]() |
143 | 12 | this.cluSets = cluSets; |
144 | } | |
145 | ||
146 | 309 |
![]() |
147 | 309 | return attributes; |
148 | } | |
149 | ||
150 | 45 |
![]() |
151 | 45 | this.attributes = attributes; |
152 | } | |
153 | ||
154 | 184 |
![]() |
155 | 184 | return type; |
156 | } | |
157 | ||
158 | 81 |
![]() |
159 | 81 | this.type = type; |
160 | } | |
161 | ||
162 | 174 |
![]() |
163 | 174 | return state; |
164 | } | |
165 | ||
166 | 45 |
![]() |
167 | 45 | this.state = state; |
168 | } | |
169 | ||
170 | 174 |
![]() |
171 | 174 | return adminOrg; |
172 | } | |
173 | ||
174 | 45 |
![]() |
175 | 45 | this.adminOrg = adminOrg; |
176 | } | |
177 | ||
178 | 181 |
![]() |
179 | 181 | return membershipQuery; |
180 | } | |
181 | ||
182 | 46 |
![]() |
183 | 46 | this.membershipQuery = membershipQuery; |
184 | } | |
185 | ||
186 | 348 |
![]() |
187 | 348 | return isReusable; |
188 | } | |
189 | ||
190 | 45 |
![]() |
191 | 45 | this.isReusable = isReusable; |
192 | } | |
193 | ||
194 | 348 |
![]() |
195 | 348 | return isReferenceable; |
196 | } | |
197 | ||
198 | 45 |
![]() |
199 | 45 | this.isReferenceable = isReferenceable; |
200 | } | |
201 | ||
202 | 415 |
![]() |
203 | 415 | return cluVerIndIds; |
204 | } | |
205 | ||
206 | 0 |
![]() |
207 | 0 | this.cluVerIndIds = cluVerIndIds; |
208 | } | |
209 | ||
210 | } |
|