Clover Coverage Report - Kuali Student 1.2-M5-SNAPSHOT (Aggregated)
Coverage timestamp: Mon Aug 29 2011 05:04:27 EDT
../../../../../../img/srcFileCovDistChart10.png 0% of files have more coverage
14   128   14   1
0   87   1   14
14     1  
1    
 
  CluResult       Line # 43 14 0% 14 0 100% 1.0
 
  (29)
 
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.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.JoinTable;
26    import javax.persistence.ManyToOne;
27    import javax.persistence.NamedQueries;
28    import javax.persistence.NamedQuery;
29    import javax.persistence.OneToMany;
30    import javax.persistence.Table;
31    import javax.persistence.Temporal;
32    import javax.persistence.TemporalType;
33   
34    import org.kuali.student.common.entity.MetaEntity;
35   
36    @Entity
37    @Table(name = "KSLU_CLU_RSLT")
38    @NamedQueries( {
39    @NamedQuery(name = "CluResult.getCluResultByCluId", query = "SELECT cr FROM CluResult cr WHERE cr.clu.id = :cluId"),
40    @NamedQuery(name = "CluResult.getCluIdByResultUsageType", query = "SELECT cr.clu.id FROM CluResult cr INNER JOIN cr.resultOptions res WHERE res.resultUsageType = :resultUsageType"),
41    @NamedQuery(name = "CluResult.getCluIdByResultComponentId", query = "SELECT cr.clu.id FROM CluResult cr INNER JOIN cr.resultOptions res WHERE res.resultComponentId = :resultComponentId")
42    })
 
43    public class CluResult extends MetaEntity {
44   
45    @ManyToOne(cascade=CascadeType.ALL)
46    @JoinColumn(name = "RT_DESCR_ID")
47    private LuRichText desc;
48   
49    @Temporal(TemporalType.TIMESTAMP)
50    @Column(name = "EFF_DT")
51    private Date effectiveDate;
52   
53    @Temporal(TemporalType.TIMESTAMP)
54    @Column(name = "EXPIR_DT")
55    private Date expirationDate;
56   
57    @ManyToOne
58    @JoinColumn(name = "CLU_ID")
59    private Clu clu;
60   
61    @OneToMany(cascade=CascadeType.ALL)
62    @JoinTable(name = "KSLU_CLURES_JN_RESOPT", joinColumns = @JoinColumn(name = "CLU_RES_ID"), inverseJoinColumns = @JoinColumn(name = "RES_OPT_ID"))
63    private List<ResultOption> resultOptions;
64   
65    @ManyToOne
66    @JoinColumn(name="TYPE_KEY_ID")
67    private CluResultType cluResultType;
68   
69    @Column(name = "ST")
70    private String state;
71   
 
72  241 toggle public LuRichText getDesc() {
73  241 return desc;
74    }
75   
 
76  110 toggle public void setDesc(LuRichText desc) {
77  110 this.desc = desc;
78    }
79   
 
80  241 toggle public Date getEffectiveDate() {
81  241 return effectiveDate;
82    }
83   
 
84  110 toggle public void setEffectiveDate(Date effectiveDate) {
85  110 this.effectiveDate = effectiveDate;
86    }
87   
 
88  241 toggle public Date getExpirationDate() {
89  241 return expirationDate;
90    }
91   
 
92  110 toggle public void setExpirationDate(Date expirationDate) {
93  110 this.expirationDate = expirationDate;
94    }
95   
 
96  241 toggle public Clu getClu() {
97  241 return clu;
98    }
99   
 
100  89 toggle public void setClu(Clu clu) {
101  89 this.clu = clu;
102    }
103   
 
104  310 toggle public List<ResultOption> getResultOptions() {
105  310 return resultOptions;
106    }
107   
 
108  89 toggle public void setResultOptions(List<ResultOption> resultOptions) {
109  89 this.resultOptions = resultOptions;
110    }
111   
 
112  241 toggle public CluResultType getCluResultType() {
113  241 return cluResultType;
114    }
115   
 
116  110 toggle public void setCluResultType(CluResultType type) {
117  110 this.cluResultType = type;
118    }
119   
 
120  241 toggle public String getState() {
121  241 return state;
122    }
123   
 
124  110 toggle public void setState(String state) {
125  110 this.state = state;
126    }
127   
128    }