# EquipmentConstrainPairDetailMapper.java

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

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

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

    /**
     * @author shijie.deng
     * @version 6.0.0
     * @date 2019/9/9
     **/
    public class EquipmentConstrainPairDetailMapper implements RowMapper<EquipmentConstrainPairDetail> {
        @Override
        public EquipmentConstrainPairDetail mapRow(ResultSet rs, int rowNum) throws SQLException {
            EquipmentConstrainPairDetail detail = new EquipmentConstrainPairDetail();
            detail.setAttributeData1(rs.getString("ATTRIBUTE_DATA1"));
            detail.setAttributeData2(rs.getString("ATTRIBUTE_DATA2"));
            detail.setAttributeData3(rs.getString("ATTRIBUTE_DATA3"));
            detail.setAttributeData4(rs.getString("ATTRIBUTE_DATA4"));
            detail.setAttributeData5(rs.getString("ATTRIBUTE_DATA5"));
            detail.setConstrainDetailRrn(rs.getLong("CONSTRAIN_DETAIL_RRN"));
            detail.setConstrainRrn(rs.getLong("CONSTRAIN_RRN"));
            detail.setIsBenchmark(rs.getString("ISBENCHMARK"));
            detail.setLayerId(rs.getString("LAYER_ID"));
            detail.setOperationId(rs.getString("OPERATION_ID"));
            detail.setOperationRrn(rs.getLong("OPERATION_RRN"));
            detail.setOperationSeq(rs.getString("OPERATION_SEQ"));
            detail.setPlanA(rs.getString("PLANA"));
            detail.setPlanB(rs.getString("PLANB"));
            detail.setPlanC(rs.getString("PLANC"));
            detail.setPlanD(rs.getString("PLAND"));
            detail.setPlanE(rs.getString("PLANE"));
            detail.setPlanF(rs.getString("PLANF"));
            detail.setPlanG(rs.getString("PLANG"));
            detail.setPlanH(rs.getString("PLANH"));
            detail.setProcessRrn(rs.getLong("PROCESS_RRN"));
            detail.setProductRrn(rs.getLong("PRODUCT_RRN"));
            detail.setReticlefamilyId(rs.getString("RETICLEFAMILY_ID"));
            detail.setRouteId(rs.getString("ROUTE_ID"));
            detail.setRouteRrn(rs.getLong("ROUTE_RRN"));
            detail.setRouteSeq(rs.getString("ROUTE_SEQ"));
            return detail;
        }

    }