# WarehouseInventoryDORowMapper.java

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

    import com.mycim.framework.jdbc.mapper.RowMapper;
    import com.mycim.valueobject.inv.WarehouseInventoryDO;

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

    public class WarehouseInventoryDORowMapper implements RowMapper<WarehouseInventoryDO> {

        private WarehouseInventoryDO warehouseInventoryDO;

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

            warehouseInventoryDO.setItemRrn(rs.getLong("ITEM_RRN"));

            warehouseInventoryDO.setWarehouseRrn(rs.getLong("WAREHOUSE_RRN"));
            warehouseInventoryDO.setWarehouseId(rs.getString("WAREHOUSE_ID"));

            warehouseInventoryDO.setOpeningBalance(rs.getDouble("OPENING_BALANCE"));

            warehouseInventoryDO.setReceiptQty(rs.getDouble("RECEIPT_QTY"));
            warehouseInventoryDO.setIssueQty(rs.getDouble("ISSUE_QTY"));
            warehouseInventoryDO.setAdjustQty(rs.getDouble("ADJUST_QTY"));

            warehouseInventoryDO.setQuantityOfWarning(rs.getDouble("QUANTITY_OF_WARNING"));
            warehouseInventoryDO.setWarningAlarmId(rs.getString("WARNING_ALARM_ID"));

            return warehouseInventoryDO;
        }

    }