# ResistMappingRowMapper.java

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

    import com.mycim.framework.jdbc.mapper.RowMapper;
    import com.mycim.framework.utils.lang.time.DateUtils;
    import com.mycim.valueobject.ems.ResistMapping;

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

    public class ResistMappingRowMapper implements RowMapper<ResistMapping> {

        @Override
        public ResistMapping mapRow(ResultSet rs, int rowNum) throws SQLException {
            ResistMapping resistMapping = new ResistMapping();
            resistMapping.setResistNo(rs.getString("RESIST_NO"));
            resistMapping.setResistName(rs.getString("RESIST_NAME"));
            resistMapping.setMaterialNo(rs.getString("MATERIAL_NO"));
            resistMapping.setLifeTimeType(rs.getString("LIFETIME_TYPE"));
            resistMapping.setDefrostTime(rs.getString("DEFROST_TIME"));
            resistMapping.setBufferDays(rs.getInt("BUFFER_DAYS"));
            resistMapping.setCreateBy(rs.getString("CREATE_BY"));
            resistMapping.setCreateTime(DateUtils.parse(rs.getString("CREATE_TIME"), DateUtils.DATE_FORMAT4DATE));
            resistMapping.setModifyBy(rs.getString("MODIFY_BY"));
            resistMapping.setModifyTime(DateUtils.parse(rs.getString("MODIFY_TIME"), DateUtils.DATE_FORMAT4DATE));
            return resistMapping;
        }

    }