/**
   * Method 'mapRow'
   *
   * @param rs
   * @param row
   * @throws SQLException
   * @return SessionSexualRelationshipType
   */
  public SessionSexualRelationshipType mapRow(ResultSet rs, int row) throws SQLException {
    SessionSexualRelationshipType dto = new SessionSexualRelationshipType();
    dto.setSessionSexualRelationshipTypeId(rs.getLong(1));
    dto.setSessionReference(rs.getString(2));
    dto.setSexualRelationshipTypeId(rs.getLong(3));
    if (rs.wasNull()) {
      dto.setSexualRelationshipTypeIdNull(true);
    }

    dto.setDateCreated(rs.getTimestamp(4));
    dto.setCreatedBy(rs.getString(5));
    dto.setDateModified(rs.getTimestamp(6));
    dto.setModifiedBy(rs.getString(7));
    dto.setStatus(rs.getInt(8));
    if (rs.wasNull()) {
      dto.setStatusNull(true);
    }

    return dto;
  }