# OcapTransDataRowMapper.java

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

    import com.mycim.framework.jdbc.mapper.RowMapper;
    import com.mycim.valueobject.ocap.OcapTransData;

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

    /**
     * @author songpy
     * @version 6.0.0
     * @date 2021/6/10
     **/
    public class OcapTransDataRowMapper implements RowMapper<OcapTransData> {
        @Override
        public OcapTransData mapRow(ResultSet rs, int rowNum) throws SQLException {
            OcapTransData caseData = new OcapTransData();
            caseData.setDataRrn(rs.getLong("DATA_RRN"));
            caseData.setDataName(rs.getString("DATA_NAME"));
            caseData.setDataValue(rs.getString("DATA_VALUE"));
            caseData.setOcapRrn(rs.getLong("OCAP_RRN"));
            return caseData;
        }

    }