# AutoMonitorItemStepMapper.java

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

    import com.mycim.framework.jdbc.mapper.RowMapper;
    import com.mycim.valueobject.automonitor.entity.AutoMonitorItemStep;

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

    public class AutoMonitorItemStepMapper implements RowMapper<AutoMonitorItemStep> {

        AutoMonitorItemStep step;

        @Override
        public AutoMonitorItemStep mapRow(ResultSet rs, int rowNum) throws SQLException {
            step = new AutoMonitorItemStep();
            step.setWorkflowRrn(rs.getLong("workflow_rrn"));
            step.setWorkflowVersion(rs.getInt("workflow_version"));
            step.setWorkflowId(rs.getString("WORKFLOW_ID"));
            step.setStepSequence(rs.getLong("step_sequence"));
            step.setEqptType(rs.getString("EQUIPMENT_TYPE"));
            step.setEquipmentId(rs.getString("equipment_id"));
            step.setEquipmentRrn(rs.getLong("equipment_rrn"));
            step.setEquipmentGroupId(rs.getString("equipment_group_id"));
            step.setEquipmentGroupRrn(rs.getLong("equipment_group_rrn"));
            step.setFlowSeq(rs.getString("flow_seq"));
            step.setOperationRrn(rs.getLong("operation_rrn"));
            step.setOperationId(rs.getString("operation_id"));
            step.setOperationDesc(rs.getString("operation_desc"));
            step.setRecipeId(rs.getString("recipe_id"));
            step.setRecipeRrn(rs.getLong("recipe_rrn"));
            step.setReticleId(rs.getString("reticle_id"));
            step.setReticleRrn(rs.getLong("reticle_rrn"));
            step.setReticleGroupId(rs.getString("reticle_group_id"));
            step.setReticleGroupRrn(rs.getLong("reticle_group_rrn"));
            step.setStageId(rs.getString("stage_id"));
            step.setNonRTSlotType(rs.getString("nonrt_slot_type"));
            return step;
        }

    }