# EenActionMapper.java

    package com.mycim.server.wip.dao.mapper;

    import com.mycim.framework.jdbc.mapper.RowMapper;
    import com.mycim.valueobject.alm.EenAction;

    import java.sql.ResultSet;
    import java.sql.SQLException;

    /**
     * @author Johnson.Wang
     * @version 6.0.0
     * @date 2019/10/8
     **/
    public class EenActionMapper implements RowMapper<EenAction> {

        private long actionRrn;

        public EenActionMapper(long actionRrn) {
            this.actionRrn = actionRrn;
        }

        @Override
        public EenAction mapRow(ResultSet rs, int rowNum) throws SQLException {
            EenAction action = new EenAction();
            action.setActionRrn(actionRrn);
            action.setActionSeq(rs.getInt("ACTION_SEQ"));
            action.setActionType(rs.getString("ACTION_TYPE"));
            action.setParameterValue1(rs.getString("PARAMETER_VALUE_1"));
            action.setParameterValue2(rs.getString("PARAMETER_VALUE_2"));
            action.setParameterValue3(rs.getString("PARAMETER_VALUE_3"));
            action.setParameterValue4(rs.getString("PARAMETER_VALUE_4"));
            action.setParameterValue5(rs.getString("PARAMETER_VALUE_5"));
            action.setParameterValue6(rs.getString("PARAMETER_VALUE_6"));
            action.setParameterValue7(rs.getString("PARAMETER_VALUE_7"));
            action.setParameterValue8(rs.getString("PARAMETER_VALUE_8"));
            action.setParameterValue9(rs.getString("PARAMETER_VALUE_9"));
            action.setParameterValue10(rs.getString("PARAMETER_VALUE_10"));

            return action;
        }

    }