Interface IBusinessObject

    • Method Detail

      • getLastChangeDateTime

        @Nullable
        default LocalDateTime getLastChangeDateTime()
        Returns:
        The latest date time that something changed. This is the latest date time from IHasCreationDateTime.getCreationDateTime(), IHasLastModificationDateTime.getLastModificationDateTime() and IHasDeletionDateTime.getDeletionDateTime(). It may be null if no time is defined at all.
      • isLastChangeAfter

        default boolean isLastChangeAfter​(@Nonnull
                                          LocalDateTime aDT)
        Check if the last change date is after the provider date time.
        Parameters:
        aDT - The date time to check against. May not be null.
        Returns:
        true if a last change date time is present and is after the provided date time.
        See Also:
        getLastChangeDateTime()
      • isDeleted

        default boolean isDeleted()
        Returns:
        true if this object is deleted, false if not.
        See Also:
        isNotDeleted()
      • isNotDeleted

        default boolean isNotDeleted()
        Returns:
        true if this object is not deleted, false if it is deleted.
        Since:
        6.1.1
        See Also:
        isDeleted()
      • isDeletedAt

        default boolean isDeletedAt​(@Nonnull
                                    LocalDateTime aDT)
        Check if the object was deleted at the specified local date time. This is true, if the deletion time is ≤ than the specified local date time.
        Specified by:
        isDeletedAt in interface com.helger.datetime.domain.IHasDeletionDateTime
        Parameters:
        aDT - The time to check for deletion. May not be null.
        Returns:
        true if this object was deleted, false if not.
      • attrs

        @Nonnull
        @ReturnsMutableObject
        com.helger.commons.collection.attr.IStringMap attrs()
        Returns:
        Custom attributes. Never null.