|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.krad.bo.BusinessObjectBase org.kuali.rice.krad.bo.PersistableBusinessObjectBase org.kuali.rice.krad.bo.InactivatableFromToImpl
@MappedSuperclass public abstract class InactivatableFromToImpl
Field Summary | |
---|---|
protected Timestamp |
activeAsOfDate
|
protected Timestamp |
activeFromDate
|
protected Timestamp |
activeToDate
|
protected boolean |
current
|
Fields inherited from class org.kuali.rice.krad.bo.PersistableBusinessObjectBase |
---|
extension, versionNumber |
Constructor Summary | |
---|---|
InactivatableFromToImpl()
|
Method Summary | |
---|---|
Timestamp |
getActiveAsOfDate()
Gets the date for which the record is being compared to in determining active/inactive |
Timestamp |
getActiveFromDate()
Gets the date for which the record become active |
Timestamp |
getActiveToDate()
Gets the date for which the record become inactive |
boolean |
isActive()
Returns active if the getActiveAsOfDate() (current time used if not set) is between
the from and to dates. |
boolean |
isCurrent()
|
void |
setActive(boolean active)
Sets the record to active or inactive. |
void |
setActiveAsOfDate(Timestamp activeAsOfDate)
Sets the date for which the record should be compared to in determining active/inactive, if not set then the current date will be used |
void |
setActiveFromDate(Timestamp from)
Sets the date for which record will be active |
void |
setActiveToDate(Timestamp to)
Sets the date for which record will be active to |
void |
setCurrent(boolean current)
|
Methods inherited from class org.kuali.rice.krad.bo.BusinessObjectBase |
---|
toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.kuali.rice.core.api.mo.ModelObjectBasic |
---|
toString |
Field Detail |
---|
protected Timestamp activeFromDate
protected Timestamp activeToDate
protected Timestamp activeAsOfDate
protected boolean current
Constructor Detail |
---|
public InactivatableFromToImpl()
Method Detail |
---|
public boolean isActive()
getActiveAsOfDate()
(current time used if not set) is between
the from and to dates. Null dates are considered to indicate an open range.
isActive
in interface Inactivatable
public void setActive(boolean active)
MutableInactivatable
setActive
in interface MutableInactivatable
public void setActiveFromDate(Timestamp from)
InactivatableFromTo
setActiveFromDate
in interface InactivatableFromTo
from
- - Timestamp value to setpublic void setActiveToDate(Timestamp to)
InactivatableFromTo
setActiveToDate
in interface InactivatableFromTo
public Timestamp getActiveFromDate()
InactivatableFromTo
getActiveFromDate
in interface InactivatableFromTo
public Timestamp getActiveToDate()
InactivatableFromTo
getActiveToDate
in interface InactivatableFromTo
public Timestamp getActiveAsOfDate()
InactivatableFromTo
getActiveAsOfDate
in interface InactivatableFromTo
public void setActiveAsOfDate(Timestamp activeAsOfDate)
InactivatableFromTo
setActiveAsOfDate
in interface InactivatableFromTo
activeAsOfDate
- - Timestamp value to setpublic boolean isCurrent()
public void setCurrent(boolean current)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |