Clover Coverage Report - KS Admin 1.1.1-SNAPSHOT
Coverage timestamp: Wed Dec 31 1969 19:00:00 EST
../../../../../img/srcFileCovDistChart0.png 0% of files have more coverage
7   61   8   0.88
0   38   1.14   8
8     1  
1    
 
  KsInactivatableFromToBase       Line # 11 7 0% 8 15 0% 0.0
 
No Tests
 
1    package org.kuali.student.core.bo;
2   
3    import java.sql.Timestamp;
4   
5    import javax.persistence.Column;
6    import javax.persistence.Transient;
7   
8    import org.kuali.rice.kns.bo.InactivateableFromTo;
9    import org.kuali.student.core.bo.util.InactivatableFromToHelper;
10   
 
11    public abstract class KsInactivatableFromToBase extends KsBusinessObjectBase implements InactivateableFromTo {
12   
13    private static final long serialVersionUID = 1L;
14   
15    @Column(name = "EFF_DT")
16    protected Timestamp activeFromDate;
17   
18    @Column(name = "EXPIR_DT")
19    protected Timestamp activeToDate;
20   
21    @Transient
22    protected Timestamp activeAsOfDate;
23   
24   
25    /**
26    * Returns active if the {@link #getActiveAsOfDate()} (current time used if not set) is between
27    * the from and to dates. Null dates are considered to indicate an open range.
28    */
 
29  0 toggle public boolean isActive() {
30  0 return InactivatableFromToHelper.isActive(this);
31    }
32   
 
33  0 toggle public void setActive(boolean active) {
34    // do nothing
35    }
36   
 
37  0 toggle public void setActiveFromDate(Timestamp from) {
38  0 this.activeFromDate = from;
39    }
40   
 
41  0 toggle public void setActiveToDate(Timestamp to) {
42  0 this.activeToDate = to;
43    }
44   
 
45  0 toggle public Timestamp getActiveFromDate() {
46  0 return this.activeFromDate;
47    }
48   
 
49  0 toggle public Timestamp getActiveToDate() {
50  0 return this.activeToDate;
51    }
52   
 
53  0 toggle public Timestamp getActiveAsOfDate() {
54  0 return this.activeAsOfDate;
55    }
56   
 
57  0 toggle public void setActiveAsOfDate(Timestamp activeAsOfDate) {
58  0 this.activeAsOfDate = activeAsOfDate;
59    }
60   
61    }