# MonitorCarrierMappingMapper.java

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

    import com.mycim.framework.jdbc.mapper.RowMapper;
    import com.mycim.valueobject.automonitor.entity.MonitorCarrierMapping;

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

    public class MonitorCarrierMappingMapper implements RowMapper<MonitorCarrierMapping> {

        MonitorCarrierMapping carrierMapping;

        @Override
        public MonitorCarrierMapping mapRow(ResultSet rs, int rowNum) throws SQLException {
            carrierMapping = new MonitorCarrierMapping();
            carrierMapping.setMonitorCarrierRrn(rs.getLong("MONITOR_CARRIER_RRN"));
            carrierMapping.setMonitorCarrierId(rs.getString("MONITOR_CARRIER_ID"));
            carrierMapping.setUnitRrn(rs.getLong("UNIT_RRN"));
            carrierMapping.setUnitId(rs.getString("UNIT_ID"));
            carrierMapping.setPosition(rs.getInt("POSITION"));
            carrierMapping.setLotRrn(rs.getLong("LOT_RRN"));
            carrierMapping.setLotId(rs.getString("LOT_ID"));
            carrierMapping.setSourcePosition(rs.getInt("SOURCE_POSITION"));
            return carrierMapping;
        }

    }