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

cn.sliew.carp.module.scheduler.service.convert.ScheduleJobConfigConvertImpl Maven / Gradle / Ivy

The newest version!
package cn.sliew.carp.module.scheduler.service.convert;

import cn.sliew.carp.module.scheduler.repository.entity.ScheduleJobConfig;
import cn.sliew.carp.module.scheduler.service.dto.ScheduleJobConfigDTO;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.processing.Generated;

@Generated(
    value = "org.mapstruct.ap.MappingProcessor",
    date = "2024-11-16T14:39:54+0000",
    comments = "version: 1.4.2.Final, compiler: javac, environment: Java 17.0.13 (Eclipse Adoptium)"
)
public class ScheduleJobConfigConvertImpl implements ScheduleJobConfigConvert {

    @Override
    public ScheduleJobConfig toDo(ScheduleJobConfigDTO arg0) {
        if ( arg0 == null ) {
            return null;
        }

        ScheduleJobConfig scheduleJobConfig = new ScheduleJobConfig();

        scheduleJobConfig.setId( arg0.getId() );
        scheduleJobConfig.setCreator( arg0.getCreator() );
        scheduleJobConfig.setCreateTime( arg0.getCreateTime() );
        scheduleJobConfig.setEditor( arg0.getEditor() );
        scheduleJobConfig.setUpdateTime( arg0.getUpdateTime() );
        scheduleJobConfig.setType( arg0.getType() );
        scheduleJobConfig.setEngineType( arg0.getEngineType() );
        scheduleJobConfig.setJobType( arg0.getJobType() );
        scheduleJobConfig.setName( arg0.getName() );
        scheduleJobConfig.setHandler( arg0.getHandler() );
        scheduleJobConfig.setRemark( arg0.getRemark() );

        return scheduleJobConfig;
    }

    @Override
    public List toDo(List arg0) {
        if ( arg0 == null ) {
            return null;
        }

        List list = new ArrayList( arg0.size() );
        for ( ScheduleJobConfigDTO scheduleJobConfigDTO : arg0 ) {
            list.add( toDo( scheduleJobConfigDTO ) );
        }

        return list;
    }

    @Override
    public List toDto(List arg0) {
        if ( arg0 == null ) {
            return null;
        }

        List list = new ArrayList( arg0.size() );
        for ( ScheduleJobConfig scheduleJobConfig : arg0 ) {
            list.add( toDto( scheduleJobConfig ) );
        }

        return list;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy