Class EntityV3DtoConverters


  • public final class EntityV3DtoConverters
    extends java.lang.Object
    Converters between entities and V3 DTOs.
    Since:
    3.3.0
    • Method Detail

      • toJobDto

        public static Job toJobDto​(JobProjection jobProjection)
        Convert the data in this job projection into a job DTO for external exposure.
        Parameters:
        jobProjection - The data from the database
        Returns:
        The job DTO representation
      • toJobRequestDto

        public static JobRequest toJobRequestDto​(JobRequestProjection jobRequestProjection)
        Convert database record into a DTO.
        Parameters:
        jobRequestProjection - The database data to convert
        Returns:
        A JobRequest instance
      • toJobExecutionDto

        public static JobExecution toJobExecutionDto​(JobExecutionProjection jobExecutionProjection)
        Convert job execution database data into a DTO.
        Parameters:
        jobExecutionProjection - The database data
        Returns:
        JobExecution instance
      • toJobMetadataDto

        public static JobMetadata toJobMetadataDto​(JobMetadataProjection jobMetadataProjection)
        Convert job metadata information to a DTO.
        Parameters:
        jobMetadataProjection - The database information
        Returns:
        A JobMetadata instance