|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.kns.bo.BusinessObjectBase org.kuali.rice.kns.bo.PersistableBusinessObjectBase org.kuali.rice.kns.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.kns.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.kns.bo.BusinessObjectBase |
---|
prepareForWorkflow, toString, toStringBuilder, toStringMapper |
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 Inactivateable
public void setActive(boolean active)
Inactivateable
setActive
in interface Inactivateable
public void setActiveFromDate(Timestamp from)
InactivateableFromTo
setActiveFromDate
in interface InactivateableFromTo
from
- - Timestamp value to setpublic void setActiveToDate(Timestamp to)
InactivateableFromTo
setActiveToDate
in interface InactivateableFromTo
public Timestamp getActiveFromDate()
InactivateableFromTo
getActiveFromDate
in interface InactivateableFromTo
public Timestamp getActiveToDate()
InactivateableFromTo
getActiveToDate
in interface InactivateableFromTo
public Timestamp getActiveAsOfDate()
InactivateableFromTo
getActiveAsOfDate
in interface InactivateableFromTo
public void setActiveAsOfDate(Timestamp activeAsOfDate)
InactivateableFromTo
setActiveAsOfDate
in interface InactivateableFromTo
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 |