# BatchLotStoreMapper.java

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

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

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

    /**
     * @author finatice.yang
     */
    public class BatchLotStoreMapper implements RowMapper<BatchLotStore> {

        @Override
        public BatchLotStore mapRow(ResultSet rs, int rowNum) throws SQLException {
            BatchLotStore batchLotStore = new BatchLotStore();
            batchLotStore.setBatchId(rs.getString("batch_id"));
            batchLotStore.setMonitorLotId(rs.getString("monitor_lot_id"));
            batchLotStore.setMonitorLotRrn(rs.getLong("monitor_lot_rrn"));
            batchLotStore.setLotSeq(rs.getInt("sequence"));
            batchLotStore.setLotId(rs.getString("lot_id"));
            batchLotStore.setLotRrn(rs.getLong("lot_rrn"));
            batchLotStore.setEqptRrn(rs.getLong("eqpt_rrn"));
            batchLotStore.setEqptId(rs.getString("eqpt_id"));
            batchLotStore.setRecipeId(rs.getString("recipe_id"));
            batchLotStore.setRecipeRrn(rs.getLong("recipe_rrn"));
            return batchLotStore;
        }

    }