# RunMapper.java

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

    import com.mycim.framework.jdbc.mapper.RowMapper;
    import com.mycim.valueobject.wip.Run;

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

    public class RunMapper implements RowMapper<Run> {

        private Run run;

        @Override
        public Run mapRow(ResultSet rs, int rowNum) throws SQLException {
            run = new Run();
            run.setRunRrn(rs.getLong("RUN_RRN"));
            run.setJobRrn(rs.getLong("JOB_RRN"));
            run.setOperationRrn(rs.getLong("OPERATION_RRN"));
            run.setEqptRrn(rs.getLong("EQPT_RRN"));
            run.setRecipeString(rs.getString("RECIPE_STRING"));
            run.setRunStatus(rs.getString("RUN_STATUS"));
            run.setProcessStartTime(rs.getTimestamp("PROCESS_START_TIME"));
            run.setProcessEndTime(rs.getTimestamp("PROCESS_END_TIME"));
            run.setMoveInDcolRrn(rs.getLong("MOVE_IN_DCOL_RRN"));
            run.setMoveOutDcolRrn(rs.getLong("MOVE_OUT_DCOL_RRN"));
            return run;
        }

    }