Package com.orchestranetworks.schema.relationships

# Interface ReverseRelationshipResult

public interface ReverseRelationshipResult
Represents the result of a reverse relationship.

Since:
  5.7.1
See Also:
  - `ReverseRelationshipIntraDataset.getReferringRecords(Adaptation)`
  - `ReverseRelationshipInterDataset.getReferringRecords(Adaptation)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `AdaptationTable`
  `getReferringTable()`
  Returns the table containing the node that refers to the specified record.
  `RequestResult`
  `getResult()`
  Returns the records in a table that refers to a specified record through a foreign key constraint, selection link or association link.

- ## Method Details

  - ### getResult

    RequestResult getResult() throws QueryPermissionException
    Returns the records in a table that refers to a specified record through a foreign key constraint, selection link or association link.

    Permissions are applied if the corresponding reverse relationship has been retrieved using a specific `Session`. As a consequence:

    - the returned records will be filtered using the access rules on records if any;
    - a `QueryPermissionException` will be thrown on execution if at least one forbidden node is used in the request.
    Throws:
      `QueryPermissionException` - if a session is provided and at least one forbidden node is used in the request.
    See Also:
      - `getReferringTable()`

  - ### getReferringTable

    AdaptationTable getReferringTable()
    Returns the table containing the node that refers to the specified record.