Class BaseDTO

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    CommonDTO, JobExecution, JobMetadata

    public abstract class BaseDTO
    extends java.lang.Object
    implements java.io.Serializable
    Base fields for multiple DTOs.
    Since:
    3.0.0
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  BaseDTO.Builder<T extends BaseDTO.Builder>
      Builder pattern to save constructor arguments.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Optional<java.time.Instant> getCreated()
      Get the creation time.
      java.util.Optional<java.lang.String> getId()
      Get the Id of this DTO.
      java.util.Optional<java.time.Instant> getUpdated()
      Get the update time.
      java.lang.String toString()
      Convert this object to a string representation.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • getId

        public java.util.Optional<java.lang.String> getId()
        Get the Id of this DTO.
        Returns:
        The id as an Optional
      • getCreated

        public java.util.Optional<java.time.Instant> getCreated()
        Get the creation time.
        Returns:
        The creation time or null if not set.
      • getUpdated

        public java.util.Optional<java.time.Instant> getUpdated()
        Get the update time.
        Returns:
        The update time or null if not set.
      • toString

        public java.lang.String toString()
        Convert this object to a string representation.
        Overrides:
        toString in class java.lang.Object
        Returns:
        This application data represented as a JSON structure