# EquipmentConstrainPairMapper.java

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

    import com.mycim.framework.jdbc.mapper.RowMapper;
    import com.mycim.valueobject.ems.EquipmentConstrainPair;

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

    /**
     * @author shijie.deng
     * @version 6.0.0
     * @date 2019/9/9
     **/
    public class EquipmentConstrainPairMapper implements RowMapper<EquipmentConstrainPair> {
        @Override
        public EquipmentConstrainPair mapRow(ResultSet rs, int rowNum) throws SQLException {
            EquipmentConstrainPair constrain = new EquipmentConstrainPair();
            constrain.setAttributeData1(rs.getString("ATTRIBUTE_DATA1"));
            constrain.setAttributeData2(rs.getString("ATTRIBUTE_DATA2"));
            constrain.setAttributeData3(rs.getString("ATTRIBUTE_DATA3"));
            constrain.setAttributeData4(rs.getString("ATTRIBUTE_DATA4"));
            constrain.setAttributeData5(rs.getString("ATTRIBUTE_DATA5"));
            constrain.setConstrainPairRrn(rs.getLong("CONSTRAIN_PAIR_RRN"));
            constrain.setCreateBy(rs.getString("CREATE_BY"));
            constrain.setCreateTime(rs.getDate("CREATE_TIME"));
            constrain.setFacilityRrn(rs.getLong("FACILITY_RRN"));
            constrain.setLotRrn(rs.getLong("LOT_RRN"));
            constrain.setModifyBy(rs.getString("MODIFY_BY"));
            constrain.setModifyTime(rs.getDate("MODIFY_TIME"));
            constrain.setProcessRrn(rs.getLong("PROCESS_RRN"));
            constrain.setProductRrn(rs.getLong("PRODUCT_RRN"));
            constrain.setRemark(rs.getString("REMARK"));
            constrain.setStatus(rs.getString("STATUS"));
            constrain.setType(rs.getString("TYPE"));
            constrain.setVersion(rs.getString("VERSION"));
            return constrain;
        }

    }