@Override
	public ReadingInMeasurement parseResultRow(ResultSet rs, int fromIndex)
			throws SQLException {
		ReadingInMeasurement rinm = new ReadingInMeasurement();
		
		try {
			if (!rs.isAfterLast()) {
				rinm.setId(rs.getInt(fromIndex));
				rinm.setMeasurementId(rs.getInt(fromIndex + 1));
				rinm.setReadingId(rs.getInt(fromIndex + 2));
				rinm.setReadingClassName(rs.getString(fromIndex + 3));
			}
		} catch (SQLException e) {
			log.log(Level.SEVERE, "parseResultRow failed: " + e.getMessage(), e);
			throw e;
		}
		
		return rinm;
	}