org.kuali.rice.kns.bo
Class InactivatableFromToImpl

java.lang.Object
  extended by org.kuali.rice.kns.bo.BusinessObjectBase
      extended by org.kuali.rice.kns.bo.PersistableBusinessObjectBase
          extended by org.kuali.rice.kns.bo.InactivatableFromToImpl
All Implemented Interfaces:
Serializable, org.apache.ojb.broker.PersistenceBrokerAware, org.kuali.rice.kns.bo.BusinessObject, org.kuali.rice.kns.bo.Inactivateable, org.kuali.rice.kns.bo.InactivateableFromTo, PersistableBusinessObject
Direct Known Subclasses:
KimAbstractMemberImpl

public abstract class InactivatableFromToImpl
extends PersistableBusinessObjectBase
implements org.kuali.rice.kns.bo.InactivateableFromTo

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.kns.bo.PersistableBusinessObjectBase
extension, versionNumber
 
Constructor Summary
InactivatableFromToImpl()
           
 
Method Summary
 Timestamp getActiveAsOfDate()
           
 Timestamp getActiveFromDate()
           
 Timestamp getActiveToDate()
           
 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)
           
 void setActiveAsOfDate(Timestamp activeAsOfDate)
           
 void setActiveFromDate(Timestamp from)
           
 void setActiveToDate(Timestamp to)
           
 void setCurrent(boolean current)
           
 
Methods inherited from class org.kuali.rice.kns.bo.PersistableBusinessObjectBase
addNote, afterDelete, afterInsert, afterLookup, afterUpdate, beforeDelete, beforeInsert, beforeInsert, beforeUpdate, beforeUpdate, buildListOfDeletionAwareLists, deleteNote, getAttachmentService, getBoNote, getBoNotes, getExtension, getNoteService, getObjectId, getPersistenceService, getPersistenceStructureService, getVersionNumber, isAutoIncrementSet, isBoNotesSupport, isNewCollectionRecord, linkEditableUserFields, refresh, refreshNonUpdateableReferences, refreshReferenceObject, setAutoIncrementSet, setBoNotes, setExtension, setNewCollectionRecord, setObjectId, setVersionNumber, supportsBoNotes
 
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.kns.bo.BusinessObject
prepareForWorkflow
 

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 org.kuali.rice.kns.bo.Inactivateable

setActive

public void setActive(boolean active)
Specified by:
setActive in interface org.kuali.rice.kns.bo.Inactivateable

setActiveFromDate

public void setActiveFromDate(Timestamp from)
Specified by:
setActiveFromDate in interface org.kuali.rice.kns.bo.InactivateableFromTo

setActiveToDate

public void setActiveToDate(Timestamp to)
Specified by:
setActiveToDate in interface org.kuali.rice.kns.bo.InactivateableFromTo

getActiveFromDate

public Timestamp getActiveFromDate()
Specified by:
getActiveFromDate in interface org.kuali.rice.kns.bo.InactivateableFromTo

getActiveToDate

public Timestamp getActiveToDate()
Specified by:
getActiveToDate in interface org.kuali.rice.kns.bo.InactivateableFromTo

getActiveAsOfDate

public Timestamp getActiveAsOfDate()
Specified by:
getActiveAsOfDate in interface org.kuali.rice.kns.bo.InactivateableFromTo

setActiveAsOfDate

public void setActiveAsOfDate(Timestamp activeAsOfDate)
Specified by:
setActiveAsOfDate in interface org.kuali.rice.kns.bo.InactivateableFromTo

isCurrent

public boolean isCurrent()

setCurrent

public void setCurrent(boolean current)


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