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

import com.ankaibei.workFlow.common.online.model.OnlineVirtualColumn.OnlineVirtualColumnModelMapper;
import com.ankaibei.workFlow.common.online.vo.OnlineVirtualColumnVo;
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 OnlineVirtualColumn$OnlineVirtualColumnModelMapperImpl implements OnlineVirtualColumnModelMapper {

    @Override
    public OnlineVirtualColumnVo fromModel(OnlineVirtualColumn arg0) {
        if ( arg0 == null ) {
            return null;
        }

        OnlineVirtualColumnVo onlineVirtualColumnVo = new OnlineVirtualColumnVo();

        onlineVirtualColumnVo.setVirtualColumnId( arg0.getVirtualColumnId() );
        onlineVirtualColumnVo.setTableId( arg0.getTableId() );
        onlineVirtualColumnVo.setObjectFieldName( arg0.getObjectFieldName() );
        onlineVirtualColumnVo.setObjectFieldType( arg0.getObjectFieldType() );
        onlineVirtualColumnVo.setColumnPrompt( arg0.getColumnPrompt() );
        onlineVirtualColumnVo.setVirtualType( arg0.getVirtualType() );
        onlineVirtualColumnVo.setDatasourceId( arg0.getDatasourceId() );
        onlineVirtualColumnVo.setRelationId( arg0.getRelationId() );
        onlineVirtualColumnVo.setAggregationTableId( arg0.getAggregationTableId() );
        onlineVirtualColumnVo.setAggregationColumnId( arg0.getAggregationColumnId() );
        onlineVirtualColumnVo.setAggregationType( arg0.getAggregationType() );
        onlineVirtualColumnVo.setWhereClauseJson( arg0.getWhereClauseJson() );

        return onlineVirtualColumnVo;
    }

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

        List<OnlineVirtualColumnVo> list = new ArrayList<OnlineVirtualColumnVo>( arg0.size() );
        for ( OnlineVirtualColumn onlineVirtualColumn : arg0 ) {
            list.add( fromModel( onlineVirtualColumn ) );
        }

        return list;
    }

    @Override
    public OnlineVirtualColumn toModel(OnlineVirtualColumnVo arg0) {
        if ( arg0 == null ) {
            return null;
        }

        OnlineVirtualColumn onlineVirtualColumn = new OnlineVirtualColumn();

        onlineVirtualColumn.setVirtualColumnId( arg0.getVirtualColumnId() );
        onlineVirtualColumn.setTableId( arg0.getTableId() );
        onlineVirtualColumn.setObjectFieldName( arg0.getObjectFieldName() );
        onlineVirtualColumn.setObjectFieldType( arg0.getObjectFieldType() );
        onlineVirtualColumn.setColumnPrompt( arg0.getColumnPrompt() );
        onlineVirtualColumn.setVirtualType( arg0.getVirtualType() );
        onlineVirtualColumn.setDatasourceId( arg0.getDatasourceId() );
        onlineVirtualColumn.setRelationId( arg0.getRelationId() );
        onlineVirtualColumn.setAggregationTableId( arg0.getAggregationTableId() );
        onlineVirtualColumn.setAggregationColumnId( arg0.getAggregationColumnId() );
        onlineVirtualColumn.setAggregationType( arg0.getAggregationType() );
        onlineVirtualColumn.setWhereClauseJson( arg0.getWhereClauseJson() );

        return onlineVirtualColumn;
    }

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

        List<OnlineVirtualColumn> list = new ArrayList<OnlineVirtualColumn>( arg0.size() );
        for ( OnlineVirtualColumnVo onlineVirtualColumnVo : arg0 ) {
            list.add( toModel( onlineVirtualColumnVo ) );
        }

        return list;
    }
}
