@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, setVersionNumbertoStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waittoStringprotected 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 Inactivatablepublic void setActive(boolean active)
MutableInactivatablesetActive in interface MutableInactivatablepublic void setActiveFromDate(Timestamp from)
InactivatableFromTosetActiveFromDate in interface InactivatableFromTofrom - - Timestamp value to setpublic void setActiveToDate(Timestamp to)
InactivatableFromTosetActiveToDate in interface InactivatableFromTopublic Timestamp getActiveFromDate()
InactivatableFromTogetActiveFromDate in interface InactivatableFromTopublic Timestamp getActiveToDate()
InactivatableFromTogetActiveToDate in interface InactivatableFromTopublic Timestamp getActiveAsOfDate()
InactivatableFromTogetActiveAsOfDate in interface InactivatableFromTopublic void setActiveAsOfDate(Timestamp activeAsOfDate)
InactivatableFromTosetActiveAsOfDate in interface InactivatableFromToactiveAsOfDate - - Timestamp value to setpublic boolean isCurrent()
public void setCurrent(boolean current)
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.