Class UpdatableMOSupport


  • public class UpdatableMOSupport
    extends Object
    The UpdatableMOSupport class provides support for update UpdatableManagedObjects.
    Since:
    1.2
    Version:
    1.2
    Author:
    Frank Fock
    • Constructor Detail

      • UpdatableMOSupport

        public UpdatableMOSupport()
        Creates a UpdatableMOSupport with undefined (null) last update time and source.
    • Method Detail

      • setLastUpdate

        public void setLastUpdate​(Date lastUpdate)
        Sets the last update date and time.
        Parameters:
        lastUpdate - the date and time of the last successful update or null the reset/update a managed object on the next access.
      • setLastUpdateNow

        public void setLastUpdateNow()
        Set the last update to the current time.
      • getLastUpdateSource

        public Object getLastUpdateSource()
        Gets the object that triggered the last update of this managed object.
        Returns:
        an object or null if the source of the last update is unknown/undefined.
      • setLastUpdateSource

        public void setLastUpdateSource​(Object source)
        Sets the source object of the last update. The object is not directly referenced by this UpdatableMOSupport. Instead, a WeakReference is used, so that the object source can be garbage collected if it is not referenced elsewhere.
        Parameters:
        source - an Object that identifies an update source.