# RcpGrpTypeRowMapper.java

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

    import com.mycim.framework.jdbc.mapper.RowMapper;
    import com.mycim.valueobject.ems.pilot.RcpGrpType;

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

    /**
     * @author Qiansheng.Wang
     * @since 2020-01-07
     */
    public class RcpGrpTypeRowMapper implements RowMapper<RcpGrpType> {

        @Override
        public RcpGrpType mapRow(ResultSet rs, int rowNum) throws SQLException {
            RcpGrpType rcpGrpType = new RcpGrpType();
            rcpGrpType.setFromRcpGrpId(rs.getString("FROM_RCP_GRP_ID"));
            rcpGrpType.setFromRcpGrpRrn(rs.getLong("FROM_RCP_GRP_RRN"));
            rcpGrpType.setToRcpGrpId(rs.getString("TO_RCP_GRP_ID"));
            rcpGrpType.setToRcpGrpRrn(rs.getLong("TO_RCP_GRP_RRN"));
            return rcpGrpType;
        }

    }