| 
 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| RefStatementRelation | Line # 41 | 17 | 0% | 17 | 2 | 94.1% | 0.9411765 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| (23) | |||
| Result | |||
| 0.9411765 | org.kuali.student.core.statement.service.impl.TestStatementServiceImpl.testUpdateRefStatementRelation_InvalidRefObjectTypeKey  org.kuali.student.core.statement.service.impl.TestStatementServiceImpl.testUpdateRefStatementRelation_InvalidRefObjectTypeKey | 1 PASS | |
| 0.9411765 | org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testUpdateMajorDisciplineRemoveRule  org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testUpdateMajorDisciplineRemoveRule | 1 PASS | |
| 0.9411765 | org.kuali.student.core.statement.service.impl.TestStatementServiceImpl.testUpdateRefStatementRelation_InvalidRefStatementRelationType  org.kuali.student.core.statement.service.impl.TestStatementServiceImpl.testUpdateRefStatementRelation_InvalidRefStatementRelationType | 1 PASS | |
| 0.9411765 | org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCreateCourseStatement  org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCreateCourseStatement | 1 PASS | |
| 0.9411765 | org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreateMajorDisciplineDeleteRule  org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreateMajorDisciplineDeleteRule | 1 PASS | |
| 0.9411765 | org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreditsProgramRequirement  org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreditsProgramRequirement | 1 PASS | |
| 0.9411765 | org.kuali.student.core.statement.service.impl.TestStatementServiceImpl.testUpdateRefStatementRelation  org.kuali.student.core.statement.service.impl.TestStatementServiceImpl.testUpdateRefStatementRelation | 1 PASS | |
| 0.9411765 | org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreateProgramRequirement  org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreateProgramRequirement | 1 PASS | |
| 0.9411765 | org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testDeleteCourseStatement  org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testDeleteCourseStatement | 1 PASS | |
| 0.9411765 | org.kuali.student.core.statement.service.impl.TestStatementServiceImpl.testCreateRefStatementRelation  org.kuali.student.core.statement.service.impl.TestStatementServiceImpl.testCreateRefStatementRelation | 1 PASS | |
| 0.9411765 | org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testUpdateCourseStatement  org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testUpdateCourseStatement | 1 PASS | |
| 0.9411765 | org.kuali.student.core.statement.service.impl.TestStatementServiceImpl.testGetRefStatementRelation  org.kuali.student.core.statement.service.impl.TestStatementServiceImpl.testGetRefStatementRelation | 1 PASS | |
| 0.9411765 | org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testDeleteProgramRequirement  org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testDeleteProgramRequirement | 1 PASS | |
| 0.9411765 | org.kuali.student.core.statement.service.impl.TestStatementServiceImpl.testDeleteRefStatementRelation  org.kuali.student.core.statement.service.impl.TestStatementServiceImpl.testDeleteRefStatementRelation | 1 PASS | |
| 0.9411765 | org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCourseVersioning  org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCourseVersioning | 1 PASS | |
| 0.9411765 | org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testUpdateProgramRequirement  org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testUpdateProgramRequirement | 1 PASS | |
| 0.47058824 | org.kuali.student.core.statement.service.impl.TestStatementServiceImpl.testGetRefStatementRelationsByStatement  org.kuali.student.core.statement.service.impl.TestStatementServiceImpl.testGetRefStatementRelationsByStatement | 1 PASS | |
| 0.47058824 | org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testDeleteCourseStatement_badTree  org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testDeleteCourseStatement_badTree | 1 PASS | |
| 0.47058824 | org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetCourseStatement  org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetCourseStatement | 1 PASS | |
| 0.47058824 | org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCreateCourseStatement_duplicateTree  org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCreateCourseStatement_duplicateTree | 1 PASS | |
| 0.47058824 | org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testGetProgramRequirement  org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testGetProgramRequirement | 1 PASS | |
| 0.3529412 | org.kuali.student.core.statement.dao.impl.TestStatementDao.testGetRefStatementRelation  org.kuali.student.core.statement.dao.impl.TestStatementDao.testGetRefStatementRelation | 1 PASS | |
| 0.05882353 | org.kuali.student.core.statement.service.impl.TestStatementServiceImpl.testGetNaturalLanguageForRefStatementRelation  org.kuali.student.core.statement.service.impl.TestStatementServiceImpl.testGetNaturalLanguageForRefStatementRelation | 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.core.statement.entity; | |
| 17 | ||
| 18 | import java.util.Date; | |
| 19 | import java.util.List; | |
| 20 | ||
| 21 | import javax.persistence.CascadeType; | |
| 22 | import javax.persistence.Column; | |
| 23 | import javax.persistence.Entity; | |
| 24 | import javax.persistence.JoinColumn; | |
| 25 | import javax.persistence.ManyToOne; | |
| 26 | import javax.persistence.NamedQueries; | |
| 27 | import javax.persistence.NamedQuery; | |
| 28 | import javax.persistence.OneToMany; | |
| 29 | import javax.persistence.Table; | |
| 30 | import javax.persistence.Temporal; | |
| 31 | import javax.persistence.TemporalType; | |
| 32 | ||
| 33 | import org.kuali.student.core.entity.AttributeOwner; | |
| 34 | import org.kuali.student.core.entity.MetaEntity; | |
| 35 | ||
| 36 | @Entity | |
| 37 | @Table(name = "KSST_REF_STMT_REL") | |
| 38 | @NamedQueries( { | |
| 39 | @NamedQuery(name = "RefStatementRelation.getRefStatementRelations", query = "SELECT r FROM RefStatementRelation r WHERE r.refObjectTypeKey = :refObjectTypeKey and r.refObjectId = :refObjectId") | |
| 40 | }) | |
| 41 | public class RefStatementRelation extends MetaEntity implements AttributeOwner<RefStatementRelationAttribute> { | |
| 42 | ||
| 43 | @Temporal(TemporalType.TIMESTAMP) | |
| 44 | @Column(name = "EFF_DT") | |
| 45 | private Date effectiveDate; | |
| 46 | ||
| 47 | @Temporal(TemporalType.TIMESTAMP) | |
| 48 | @Column(name = "EXPIR_DT") | |
| 49 | private Date expirationDate; | |
| 50 | ||
| 51 | @Column(name="REF_OBJ_TYPE_KEY") | |
| 52 | private String refObjectTypeKey; | |
| 53 | ||
| 54 | @Column(name="REF_OBJ_ID") | |
| 55 | private String refObjectId; | |
| 56 | ||
| 57 | @ManyToOne() | |
| 58 | @JoinColumn(name = "REF_STMT_REL_TYPE_ID") | |
| 59 | private RefStatementRelationType refStatementRelationType; | |
| 60 | ||
| 61 | @Column(name="ST") | |
| 62 | private String state; | |
| 63 | ||
| 64 | @ManyToOne() | |
| 65 | @JoinColumn(name = "STMT_ID") | |
| 66 | private Statement statement; | |
| 67 | ||
| 68 | @OneToMany(cascade = CascadeType.ALL) | |
| 69 | @JoinColumn(name = "OWNER") | |
| 70 | private List<RefStatementRelationAttribute> attributes; | |
| 71 | ||
| 72 | 61 |  public RefStatementRelationType getRefStatementRelationType() { | 
| 73 | 61 | return refStatementRelationType; | 
| 74 | } | |
| 75 | ||
| 76 | 19 |  public void setRefStatementRelationType(RefStatementRelationType refStatementRelationType) { | 
| 77 | 19 | this.refStatementRelationType = refStatementRelationType; | 
| 78 | } | |
| 79 | ||
| 80 | 62 |  public Statement getStatement() { | 
| 81 | 62 | return statement; | 
| 82 | } | |
| 83 | ||
| 84 | 19 |  public void setStatement(Statement statement) { | 
| 85 | 19 | this.statement = statement; | 
| 86 | } | |
| 87 | ||
| 88 | 120 |  @Override | 
| 89 | public List<RefStatementRelationAttribute> getAttributes() { | |
| 90 | 120 | return this.attributes; | 
| 91 | } | |
| 92 | ||
| 93 | 37 |  @Override | 
| 94 | public void setAttributes(List<RefStatementRelationAttribute> attributes) { | |
| 95 | 37 | this.attributes = attributes; | 
| 96 | } | |
| 97 | ||
| 98 | 60 |  public String getState() { | 
| 99 | 60 | return state; | 
| 100 | } | |
| 101 | ||
| 102 | 21 |  public void setState(String state) { | 
| 103 | 21 | this.state = state; | 
| 104 | } | |
| 105 | ||
| 106 | 61 |  public String getRefObjectTypeKey() { | 
| 107 | 61 | return refObjectTypeKey; | 
| 108 | } | |
| 109 | ||
| 110 | 21 |  public void setRefObjectTypeKey(String refObjectTypeKey) { | 
| 111 | 21 | this.refObjectTypeKey = refObjectTypeKey; | 
| 112 | } | |
| 113 | ||
| 114 | 61 |  public String getRefObjectId() { | 
| 115 | 61 | return refObjectId; | 
| 116 | } | |
| 117 | ||
| 118 | 21 |  public void setRefObjectId(String refObjectId) { | 
| 119 | 21 | this.refObjectId = refObjectId; | 
| 120 | } | |
| 121 | ||
| 122 | 61 |  public Date getEffectiveDate() { | 
| 123 | 61 | return effectiveDate; | 
| 124 | } | |
| 125 | ||
| 126 | 21 |  public void setEffectiveDate(Date effectiveDate) { | 
| 127 | 21 | this.effectiveDate = effectiveDate; | 
| 128 | } | |
| 129 | ||
| 130 | 61 |  public Date getExpirationDate() { | 
| 131 | 61 | return expirationDate; | 
| 132 | } | |
| 133 | ||
| 134 | 21 |  public void setExpirationDate(Date expirationDate) { | 
| 135 | 21 | this.expirationDate = expirationDate; | 
| 136 | } | |
| 137 | ||
| 138 | 0 |  @Override | 
| 139 | public String toString() { | |
| 140 | 0 | return "RefStatementRelation[id=" + getId() + "]"; | 
| 141 | } | |
| 142 | } | |
| 
 | ||||||||||||