Coverage Report - org.kuali.student.core.bo.KsInactivatableFromToBase
 
Classes in this File Line Coverage Branch Coverage Complexity
KsInactivatableFromToBase
0%
0/12
N/A
1
 
 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.krad.bo.InactivatableFromTo;
 9  
 import org.kuali.student.core.bo.util.InactivatableFromToHelper;
 10  
 
 11  0
 public abstract class KsInactivatableFromToBase extends KsBusinessObjectBase implements InactivatableFromTo {
 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  
     public boolean isActive() {
 30  0
         return InactivatableFromToHelper.isActive(this);
 31  
     }
 32  
     
 33  
     public void setActive(boolean active) {
 34  
         // do nothing
 35  0
     }
 36  
 
 37  
     public void setActiveFromDate(Timestamp from) {
 38  0
         this.activeFromDate = from;
 39  0
     }
 40  
 
 41  
     public void setActiveToDate(Timestamp to) {
 42  0
         this.activeToDate = to;
 43  0
     }
 44  
 
 45  
     public Timestamp getActiveFromDate() {
 46  0
         return this.activeFromDate;
 47  
     }
 48  
 
 49  
     public Timestamp getActiveToDate() {
 50  0
         return this.activeToDate;
 51  
     }
 52  
 
 53  
     public Timestamp getActiveAsOfDate() {
 54  0
         return this.activeAsOfDate;
 55  
     }
 56  
 
 57  
     public void setActiveAsOfDate(Timestamp activeAsOfDate) {
 58  0
         this.activeAsOfDate = activeAsOfDate;
 59  0
     }
 60  
 
 61  
 }