All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aizuda.snailjob.server.web.service.convert.RetryDeadLetterResponseVOConverterImpl Maven / Gradle / Ivy

package com.aizuda.snailjob.server.web.service.convert;

import com.aizuda.snailjob.server.web.model.response.RetryDeadLetterResponseVO;
import com.aizuda.snailjob.template.datasource.persistence.po.RetryDeadLetter;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.processing.Generated;

@Generated(
    value = "org.mapstruct.ap.MappingProcessor",
    date = "2024-05-29T12:27:56+0800",
    comments = "version: 1.5.3.Final, compiler: javac, environment: Java 17.0.10 (Amazon.com Inc.)"
)
public class RetryDeadLetterResponseVOConverterImpl implements RetryDeadLetterResponseVOConverter {

    @Override
    public RetryDeadLetterResponseVO convert(RetryDeadLetter retryDeadLetter) {
        if ( retryDeadLetter == null ) {
            return null;
        }

        RetryDeadLetterResponseVO retryDeadLetterResponseVO = new RetryDeadLetterResponseVO();

        retryDeadLetterResponseVO.setId( retryDeadLetter.getId() );
        retryDeadLetterResponseVO.setGroupName( retryDeadLetter.getGroupName() );
        retryDeadLetterResponseVO.setSceneName( retryDeadLetter.getSceneName() );
        retryDeadLetterResponseVO.setIdempotentId( retryDeadLetter.getIdempotentId() );
        retryDeadLetterResponseVO.setBizNo( retryDeadLetter.getBizNo() );
        retryDeadLetterResponseVO.setExecutorName( retryDeadLetter.getExecutorName() );
        retryDeadLetterResponseVO.setArgsStr( retryDeadLetter.getArgsStr() );
        retryDeadLetterResponseVO.setExtAttrs( retryDeadLetter.getExtAttrs() );
        retryDeadLetterResponseVO.setTaskType( retryDeadLetter.getTaskType() );
        retryDeadLetterResponseVO.setUniqueId( retryDeadLetter.getUniqueId() );
        retryDeadLetterResponseVO.setCreateDt( retryDeadLetter.getCreateDt() );

        return retryDeadLetterResponseVO;
    }

    @Override
    public List convertList(List retryDeadLetters) {
        if ( retryDeadLetters == null ) {
            return null;
        }

        List list = new ArrayList( retryDeadLetters.size() );
        for ( RetryDeadLetter retryDeadLetter : retryDeadLetters ) {
            list.add( convert( retryDeadLetter ) );
        }

        return list;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy