# LotConstrainTriggerMapper.java

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

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

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

    /**
     * @author shijie.deng
     * @version 6.0.0
     * @date 2019/9/9
     **/
    public class LotConstrainTriggerMapper implements RowMapper<LotConstrainTrigger> {
        @Override
        public LotConstrainTrigger mapRow(ResultSet rs, int rowNum) throws SQLException {
            LotConstrainTrigger trigger = new LotConstrainTrigger();
            trigger.setConstrainRrn(rs.getLong("CONSTRAIN_RRN"));
            trigger.setLotId(rs.getString("LOT_ID"));
            trigger.setLotRrn(rs.getLong("LOT_RRN"));
            trigger.setPlan(rs.getString("PLAN"));
            trigger.setStepSeq(rs.getInt("STEP_SEQ"));
            trigger.setTriggerOperationId(rs.getString("TRIGGER_OPERATION_ID"));
            trigger.setTriggerOperationSeq(rs.getString("TRIGGER_OPERATION_SEQ"));
            trigger.setTriggerRouteId(rs.getString("TRIGGER_ROUTE_ID"));
            trigger.setTriggerRouteSeq(rs.getString("TRIGGER_ROUTE_SEQ"));
            trigger.setTriggerRrn(rs.getLong("TRIGGER_RRN"));
            trigger.setTriggerTime(rs.getDate("TRIGGER_TIME"));
            return trigger;
        }

    }