# ResistStatusRowMapper.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.ResistStatus;

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

    public class ResistStatusRowMapper implements RowMapper<ResistStatus> {
        @Override
        public ResistStatus mapRow(ResultSet rs, int rowNum) throws SQLException {
            ResistStatus resistStatus = new ResistStatus();
            resistStatus.setResistSysRrn(rs.getLong("RESIST_SYS_RRN"));
            resistStatus.setStatusGroupId(rs.getString("STATUS_GROUP_ID"));
            resistStatus.setCurrentStatus(rs.getString("CURRENT_STATUS"));
            resistStatus.setLastEventTransRrn(rs.getLong("LAST_EVENT_TRANS_RRN"));
            resistStatus.setCreateTime(DateUtils.parse(rs.getString("CREATE_TIME"), DateUtils.DATE_FORMAT4DATE));
            return resistStatus;
        }

    }