org.kuali.rice.krad.bo
Class InactivatableFromToImpl

java.lang.Object
  extended by org.kuali.rice.krad.bo.BusinessObjectBase
      extended by org.kuali.rice.krad.bo.PersistableBusinessObjectBase
          extended by org.kuali.rice.krad.bo.InactivatableFromToImpl
All Implemented Interfaces:
Serializable, org.apache.ojb.broker.PersistenceBrokerAware, Inactivatable, MutableInactivatable, GloballyUnique, Versioned, ModelObjectBasic, BusinessObject, InactivatableFromTo, PersistableBusinessObject
Direct Known Subclasses:
TravelAccountUseRate

@MappedSuperclass
public abstract class InactivatableFromToImpl
extends PersistableBusinessObjectBase
implements InactivatableFromTo

Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
Serialized Form

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.PersistableBusinessObjectBase
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
 
Methods inherited from class org.kuali.rice.krad.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

activeFromDate

protected Timestamp activeFromDate

activeToDate

protected Timestamp activeToDate

activeAsOfDate

protected Timestamp activeAsOfDate

current

protected boolean current
Constructor Detail

InactivatableFromToImpl

public InactivatableFromToImpl()
Method Detail

isActive

public boolean isActive()
Returns active if the getActiveAsOfDate() (current time used if not set) is between the from and to dates. Null dates are considered to indicate an open range.

Specified by:
isActive in interface Inactivatable
Returns:
true if active false if not.

setActive

public void setActive(boolean active)
Description copied from interface: MutableInactivatable
Sets the record to active or inactive.

Specified by:
setActive in interface MutableInactivatable

setActiveFromDate

public void setActiveFromDate(Timestamp from)
Description copied from interface: InactivatableFromTo
Sets the date for which record will be active

Specified by:
setActiveFromDate in interface InactivatableFromTo
Parameters:
from - - Timestamp value to set

setActiveToDate

public void setActiveToDate(Timestamp to)
Description copied from interface: InactivatableFromTo
Sets the date for which record will be active to

Specified by:
setActiveToDate in interface InactivatableFromTo

getActiveFromDate

public Timestamp getActiveFromDate()
Description copied from interface: InactivatableFromTo
Gets the date for which the record become active

Specified by:
getActiveFromDate in interface InactivatableFromTo
Returns:
Timestamp

getActiveToDate

public Timestamp getActiveToDate()
Description copied from interface: InactivatableFromTo
Gets the date for which the record become inactive

Specified by:
getActiveToDate in interface InactivatableFromTo
Returns:
Timestamp

getActiveAsOfDate

public Timestamp getActiveAsOfDate()
Description copied from interface: InactivatableFromTo
Gets the date for which the record is being compared to in determining active/inactive

Specified by:
getActiveAsOfDate in interface InactivatableFromTo
Returns:
Timestamp

setActiveAsOfDate

public void setActiveAsOfDate(Timestamp activeAsOfDate)
Description copied from interface: InactivatableFromTo
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

Specified by:
setActiveAsOfDate in interface InactivatableFromTo
Parameters:
activeAsOfDate - - Timestamp value to set

isCurrent

public boolean isCurrent()

setCurrent

public void setCurrent(boolean current)


Copyright © 2005-2011 The Kuali Foundation. All Rights Reserved.