# PiLotRcpGrpRowMapper.java

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

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

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

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

        @Override
        public PiLotRcpGrp mapRow(ResultSet rs, int rowNum) throws SQLException {
            PiLotRcpGrp piLotRcpGrp = new PiLotRcpGrp();
            piLotRcpGrp.setRcpGrpRrn(rs.getLong("rcp_grp_rrn"));
            piLotRcpGrp.setRcpGrpId(rs.getString("rcp_grp_id"));
            piLotRcpGrp.setRcpGrpDesc(rs.getString("rcp_grp_desc"));

            piLotRcpGrp.setCreateTime(rs.getTimestamp("CREATE_TIME"));
            piLotRcpGrp.setUpdateTime(rs.getTimestamp("UPDATE_TIME"));
            piLotRcpGrp.setCreateUserRrn(rs.getLong("CREATE_USER_RRN"));
            piLotRcpGrp.setUpdateUserRrn(rs.getLong("UPDATE_USER_RRN"));
            piLotRcpGrp.setVersion(rs.getInt("LOCK_VERSION"));
            return piLotRcpGrp;
        }

    }