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 | 0 | 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 | |
|
27 | |
|
28 | |
|
29 | |
public boolean isActive() { |
30 | 0 | return InactivatableFromToHelper.isActive(this); |
31 | |
} |
32 | |
|
33 | |
public void setActive(boolean active) { |
34 | |
|
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 | |
} |