package com.ankaibei.workFlow.common.online.model;

import com.ankaibei.workFlow.common.online.model.OnlineDblink.OnlineDblinkModelMapper;
import com.ankaibei.workFlow.common.online.vo.OnlineDblinkVo;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.Generated;

@Generated(
    value = "org.mapstruct.ap.MappingProcessor",
    date = "2023-05-08T14:15:47+0800",
    comments = "version: 1.4.2.Final, compiler: javac, environment: Java 1.8.0_144 (Oracle Corporation)"
)
public class OnlineDblink$OnlineDblinkModelMapperImpl implements OnlineDblinkModelMapper {

    @Override
    public OnlineDblinkVo fromModel(OnlineDblink arg0) {
        if ( arg0 == null ) {
            return null;
        }

        OnlineDblinkVo onlineDblinkVo = new OnlineDblinkVo();

        onlineDblinkVo.setDblinkId( arg0.getDblinkId() );
        onlineDblinkVo.setDblinkName( arg0.getDblinkName() );
        onlineDblinkVo.setVariableName( arg0.getVariableName() );
        onlineDblinkVo.setDblinkDesc( arg0.getDblinkDesc() );
        onlineDblinkVo.setDblinkConfigConstant( arg0.getDblinkConfigConstant() );
        onlineDblinkVo.setCreateTime( arg0.getCreateTime() );

        return onlineDblinkVo;
    }

    @Override
    public List<OnlineDblinkVo> fromModelList(List<OnlineDblink> arg0) {
        if ( arg0 == null ) {
            return null;
        }

        List<OnlineDblinkVo> list = new ArrayList<OnlineDblinkVo>( arg0.size() );
        for ( OnlineDblink onlineDblink : arg0 ) {
            list.add( fromModel( onlineDblink ) );
        }

        return list;
    }

    @Override
    public OnlineDblink toModel(OnlineDblinkVo arg0) {
        if ( arg0 == null ) {
            return null;
        }

        OnlineDblink onlineDblink = new OnlineDblink();

        onlineDblink.setDblinkId( arg0.getDblinkId() );
        onlineDblink.setDblinkName( arg0.getDblinkName() );
        onlineDblink.setVariableName( arg0.getVariableName() );
        onlineDblink.setDblinkDesc( arg0.getDblinkDesc() );
        onlineDblink.setDblinkConfigConstant( arg0.getDblinkConfigConstant() );
        onlineDblink.setCreateTime( arg0.getCreateTime() );

        return onlineDblink;
    }

    @Override
    public List<OnlineDblink> toModelList(List<OnlineDblinkVo> arg0) {
        if ( arg0 == null ) {
            return null;
        }

        List<OnlineDblink> list = new ArrayList<OnlineDblink>( arg0.size() );
        for ( OnlineDblinkVo onlineDblinkVo : arg0 ) {
            list.add( toModel( onlineDblinkVo ) );
        }

        return list;
    }
}
