@MappedSuperclass public abstract class InactivatableFromToImpl extends PersistableBusinessObjectBase implements InactivatableFromTo
Modifier and Type | Field and Description |
---|---|
protected Timestamp |
activeAsOfDate |
protected Timestamp |
activeFromDate |
protected Timestamp |
activeToDate |
protected boolean |
current |
extension, versionNumber
Constructor and Description |
---|
InactivatableFromToImpl() |
Modifier and Type | Method and Description |
---|---|
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) |
afterDelete, afterInsert, afterLookup, afterUpdate, beforeDelete, beforeInsert, beforeUpdate, buildListOfDeletionAwareLists, getExtension, getObjectId, getPersistenceService, getPersistenceStructureService, getVersionNumber, isNewCollectionRecord, linkEditableUserFields, postLoad, postPersist, postRemove, postUpdate, prePersist, preRemove, preUpdate, refresh, refreshNonUpdateableReferences, refreshReferenceObject, setExtension, setNewCollectionRecord, setObjectId, setVersionNumber
toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
toString
protected Timestamp activeFromDate
protected Timestamp activeToDate
protected Timestamp activeAsOfDate
protected boolean current
public InactivatableFromToImpl()
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)
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.