# LotExtMapper.java

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

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

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

    /**
     * @author andy
     */
    public class LotExtMapper implements RowMapper {
        @Override
        public LotExt mapRow(ResultSet rs, int rowNum) throws SQLException {
            LotExt lotExt = new LotExt();
            lotExt.setLotRrn(rs.getLong("lot_rrn"));
            lotExt.setTempRecipeString(rs.getString("temp_recipe_string"));
            lotExt.setAttributeData1(rs.getString("attribute_data1"));
            lotExt.setAttributeData2(rs.getString("attribute_data2"));
            lotExt.setAttributeData3(rs.getString("attribute_data3"));
            lotExt.setAttributeData4(rs.getString("attribute_data4"));
            lotExt.setAttributeData5(rs.getString("attribute_data5"));
            lotExt.setWiferId(rs.getString("wifer_id"));
            lotExt.setWiferType(rs.getString("wifer_type"));
            lotExt.setFlowLevel(rs.getString("flow_level"));
            lotExt.setCustomerId(rs.getString("customer_id"));
            lotExt.setCustomerLotId(rs.getString("customer_lot_id"));
            lotExt.setCustomerWaferId(rs.getString("customer_wafer_id"));
            lotExt.setWaferStartTime(rs.getDate("wafer_start_time"));
            lotExt.setInnerOrderNo(rs.getString("inner_order_no"));
            lotExt.setShippingCode(rs.getString("shipping_code"));
            lotExt.setIsOutSource(rs.getString("is_out_source"));
            lotExt.setIsRecreateLot(rs.getString("is_recreate_lot"));
            lotExt.setProjectCategory(rs.getString("project_category"));
            return lotExt;
        }

    }