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.student.core.bo.util.InactivatableFromToHelper; |
9 | |
import org.kuali.rice.krad.bo.InactivatableFromTo; |
10 | |
|
11 | 0 | public class KsMetaInactivatableFromToBase extends KsMetaBusinessObjectBase |
12 | |
implements InactivatableFromTo { |
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 | 0 | return activeAsOfDate; |
29 | |
} |
30 | |
|
31 | |
@Override |
32 | |
public Timestamp getActiveFromDate() { |
33 | 0 | return activeFromDate; |
34 | |
} |
35 | |
|
36 | |
@Override |
37 | |
public Timestamp getActiveToDate() { |
38 | 0 | return activeToDate; |
39 | |
} |
40 | |
|
41 | |
@Override |
42 | |
public void setActiveAsOfDate(Timestamp activeAsOfDate) { |
43 | 0 | this.activeAsOfDate = activeAsOfDate; |
44 | 0 | } |
45 | |
|
46 | |
@Override |
47 | |
public void setActiveFromDate(Timestamp from) { |
48 | 0 | this.activeFromDate = from; |
49 | 0 | } |
50 | |
|
51 | |
@Override |
52 | |
public void setActiveToDate(Timestamp to) { |
53 | 0 | this.activeToDate = to; |
54 | 0 | } |
55 | |
|
56 | |
@Override |
57 | |
public boolean isActive() { |
58 | 0 | return InactivatableFromToHelper.isActive(this); |
59 | |
} |
60 | |
|
61 | |
@Override |
62 | |
public void setActive(boolean active) { |
63 | |
|
64 | 0 | } |
65 | |
|
66 | |
} |