# PmTypeRowMapper.java

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

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

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

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

        @Override
        public PmType mapRow(ResultSet rs, int rowNum) throws SQLException {
            PmType pmType = new PmType();
            pmType.setBufferTime(rs.getInt("BUFFER_TIME"));
            pmType.setConstraintRcpRrn(rs.getLong("CONSTRAINT_RECIPE_RRN"));
            pmType.setConstraintRcpId(rs.getString("CONSTRAINT_RECIPE_ID"));
            return pmType;
        }

    }