View Javadoc

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 class KsMetaInactivatableFromToBase extends KsMetaBusinessObjectBase
12  		implements InactivateableFromTo {
13  
14  	private static final long serialVersionUID = 6285786348480193634L;
15  	
16  	@Column(name = "EFF_DT")
17      protected Timestamp activeFromDate;
18      
19      @Column(name = "EXPIR_DT")
20      protected Timestamp activeToDate;
21      
22      @Transient
23      protected Timestamp activeAsOfDate;
24      
25  
26  	@Override
27  	public Timestamp getActiveAsOfDate() {
28  		return activeAsOfDate;
29  	}
30  
31  	@Override
32  	public Timestamp getActiveFromDate() {
33  		return activeFromDate;
34  	}
35  
36  	@Override
37  	public Timestamp getActiveToDate() {
38  		return activeToDate;
39  	}
40  
41  	@Override
42  	public void setActiveAsOfDate(Timestamp activeAsOfDate) {
43  		this.activeAsOfDate = activeAsOfDate;
44  	}
45  
46  	@Override
47  	public void setActiveFromDate(Timestamp from) {
48  		this.activeFromDate = from;
49  	}
50  
51  	@Override
52  	public void setActiveToDate(Timestamp to) {
53  		this.activeToDate = to;
54  	}
55  
56  	@Override
57  	public boolean isActive() {
58  		return InactivatableFromToHelper.isActive(this);
59  	}
60  
61  	@Override
62  	public void setActive(boolean active) {
63  		// do nothing
64  	}
65  
66  }