# LotRecycledInfoRowMapper.java

    // Created on 2014年10月29日
    // $Id$

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

    import com.mycim.framework.jdbc.mapper.RowMapper;
    import com.mycim.valueobject.prp.LotRecycledInfo;

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

    /**
     * @author mark
     */
    public class LotRecycledInfoRowMapper implements RowMapper<LotRecycledInfo> {

        @Override
        public LotRecycledInfo mapRow(ResultSet rs, int rowNum) throws SQLException {
            LotRecycledInfo lotRecycledInfo = new LotRecycledInfo();

            lotRecycledInfo.setLotRrn(rs.getLong("lot_rrn"));
            lotRecycledInfo.setProcessRrn(rs.getLong("process_rrn"));
            lotRecycledInfo.setProcessVersion(rs.getInt("PROCESS_VERSION"));

            lotRecycledInfo.setStartRouteRrn(rs.getLong("start_route_rrn"));
            lotRecycledInfo.setStartOperationRrn(rs.getLong("start_operation_rrn"));
            lotRecycledInfo.setEndRouteRrn(rs.getLong("end_route_rrn"));
            lotRecycledInfo.setEndOperationRrn(rs.getLong("end_operation_rrn"));
            lotRecycledInfo.setLoopCount(rs.getInt("loop_count"));
            lotRecycledInfo.setObjectRrn(rs.getLong("object_rrn"));
            lotRecycledInfo.setSumLoopCount(rs.getInt("sum_loop_count"));
            return lotRecycledInfo;
        }

    }