Interface ModelRelationshipQueries.Relationship

Enclosing class:
ModelRelationshipQueries

public static interface ModelRelationshipQueries.Relationship
Storage-independent view of one temporal child-to-parent relationship interval.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the child Model identifier.
    boolean
    Returns whether deleting the parent also deletes the child through this relationship.
    Converts this relationship to a Graph edge while preserving its validity interval and deletion policy.
    Returns the parent Model identifier.
    Returns the declared parent Model type.
    Returns the child's composition path in the parent Graph.
    default boolean
    Whether ancestor search composition must stop at this relationship.
    long
    Returns the inclusive state index at which this relationship became valid.
    Returns the exclusive end of the relationship's validity, or null while open-ended.
  • Method Details

    • childId

      String childId()
      Returns the child Model identifier.
    • parentId

      String parentId()
      Returns the parent Model identifier.
    • parentType

      String parentType()
      Returns the declared parent Model type.
    • path

      String path()
      Returns the child's composition path in the parent Graph.
    • validFrom

      long validFrom()
      Returns the inclusive state index at which this relationship became valid.
    • validUntil

      Long validUntil()
      Returns the exclusive end of the relationship's validity, or null while open-ended.
    • deleteOnParentDeletion

      boolean deleteOnParentDeletion()
      Returns whether deleting the parent also deletes the child through this relationship.
    • searchExcluded

      default boolean searchExcluded()
      Whether ancestor search composition must stop at this relationship.
    • edge

      default ModelGraphEdge edge()
      Converts this relationship to a Graph edge while preserving its validity interval and deletion policy.